Scenario:
while user filling form and clicked enter after filling input field of the form and many fields are left to fill, form will submit if other input fields are set as not required. In this scenario we can prevent submitting from from clicking enter button.
SCRIPT:
$('form input').keydown(function (e) {//you can use form id or class insted of "form input"
if (e.keyCode == 13) {
e.preventDefault();
return false;
}
});