title: How to find which key triggered the form submit event
body: <p>I have a form with multiple fields, But only have one required field. The issue is when the required field is filled and Enter key is pressed the form get submitted.</p>
  
  <p>If Enter key is pressed inside a Text area there is no problem, But for Text box the form get submitted.</p>
  
  <p>I was thinking the following as a solution.</p>
  
  <ul>
  <li><p>subscribe the podio form submit event.</p></li>
  <li><p>find which key caused the form submit</p></li>
  <li><p>if form submit is triggered by Enter key prevent the default action.</p></li>
  </ul>
  
  <p>Right now i'm using the following method.</p>
  
  <pre><code>$("form").bind("keypress", function (e) {
      if (e.keyCode == 13) {              
        e.preventDefault();
      }
  });
  </code></pre>
  
  <p>It is working fine. But is there a way that i can do this in form submit event?</p>