How to prevent the validation of a form by pressing the enter key

Hello everyone
I have an application in which I have an input of type submit. I would like to know how to prevent the enter key from triggering submit on this input :

input class=“btn btn-primary m-r” type=“submit” tabindex="-1" id=“myInput” value=“Save” />

You can add a submit binding on the enclosing form tag <form submit.delegate = "signup($event)">