title: jQuery keydown keyup function fires every other time
body: <p>I have this small snippet to change a bit of html when a user presses the Alt key, and then change it back when they release it.</p>
  
  <pre><code> $(document).keydown(function(e) {
  
      if(e.altKey) {
  
          $('#title').html('foo');
  
          $(this).keyup(function(e) {
  
              $('#title').html('bar');
  
          });
  
      }
  
  });
  </code></pre>
  
  <p>This works fine the first time, but the 2nd time it doesn't. The 3rd does work, 4th doesn't etc...</p>
  
  <p>Why do the key events only seem to get triggered every other key press?</p>