title: Keydown/keyup events not detecting the Escape key being pressed on input text fields in Chrome
body: <p>I want to do something when the <kbd>escape</kbd> key is pressed by the user on a text field. <a href="http://jsfiddle.net/ghUey/" rel="nofollow noreferrer">This code</a> logs <code>27</code> whenever the <kbd>escape</kbd> key is pressed in the input box in Safari and Firefox, but not in Chrome. I also tried binding to <code>keyup</code>, not using jQuery (i.e., just using raw JavaScript), and tried using <code>keyCode</code> instead of <code>which</code>, none of which helped. Incidentally, Chrome seems to do just fine with all other keys like <kbd>Enter</kbd>, the modifier keys, etc. Any idea what's up?</p>
  <p>NB: I'm using Chrome 22.0.1229.94 on Mountain Lion.</p>
  <p>UPDATE: By the way, if it helps, when I press <kbd>escape</kbd> on the input box in Chrome, it loses focus while on the other two browsers it does not.</p>