title: Why 'keydown' event works like 'keypress' event?
body: <p>The next sample code outputs 'keydown' message many times while I hold a button down. The docs <a href="http://api.jquery.com/keydown/" rel="noreferrer">says</a> that the keydown event happens once for one push of the button. So, the keydown event works like the keypress event in the next example.</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
    &lt;head&gt;
    &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;
    &lt;title&gt;&lt;/title&gt;
  
    &lt;script type='text/javascript' src='jquery.js'&gt;&lt;/script&gt;
    &lt;script type='text/javascript'&gt;
      function onLoad()
      {
          $( '#text' ).on( 'keydown', function() { console.info( 'keydown' ) } ); 
      }   
    &lt;/script&gt;
  
    &lt;/head&gt;
    &lt;body onload='onLoad()'&gt;
       &lt;input type='text' id='text'&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I tested it on Windows, Firefox 19.0.2 and Google Chrome 25.0.1364.152. Also I created a <a href="http://jsfiddle.net/7Jxcq/" rel="noreferrer">fiddle</a> (the problem can be reproduced). JQuery versions for which problem is reproduced: 1.8.2, 1.9.1.</p>
  
  <p>Update.</p>
  
  <p>I did realize the problem: <a href="https://stackoverflow.com/questions/7686197/how-can-i-avoid-autorepeated-keydown-events-in-javascript">How can I avoid autorepeated keydown events in JavaScript?</a>.</p>