title: Prevent form submission on Enter key press
body: <p>I have a <code>form</code> with two text boxes, one <strong>select</strong> drop down and one <strong>radio button</strong>. When the <kbd>enter</kbd> key is pressed, I want to call my JavaScript function, but when I press it, the <code>form</code> is submitted.</p>
  <p>How do I prevent the <code>form</code> from being submitted when the <kbd><strong>enter</strong></kbd> key is pressed?</p>