title: jQuery: trigger event on tab key
body: <p>I would like to call a function when the tab key is pressed within any field with the <code>name="notes"</code>. </p>
  
  <p>I tried the following but this doesn't fire (using IE 9). What do I have to change here to make this work at least in IE 8 and IE 9 ?</p>
  
  <pre><code>$('input[name=notes]').keypress(function(e) {
      var code = e.keyCode || e.which;
      if (code === 9) {  
          e.preventDefault();
          myFunction();
      }
  });
  </code></pre>