Why won't keyup() and keydown() play nicely together?
<p>I can't get  the jQuery <code>keyup</code> and <code>keydown</code> events to work together. See this jsFiddle: <a href="http://jsfiddle.net/CXkam/1/" rel="nofollow">http://jsfiddle.net/CXkam/1/</a></p>

<p>Code here too for ease: </p>

<pre><code>$(document).keyup(function (event) {
    alert('Keyup');
});
$(document).keypress(function(e) {
    alert('Keypress: ' + String.fromCharCode(e.which));
});
$(document).keydown(function(e) {
    alert('Keydown: ' + String.fromCharCode(e.which));
});
</code></pre>

<p>If you comment out the <code>keypress()</code> and <code>keydown()</code> handlers, then the <code>keyup()</code> alert fires.</p>

<p>But if you don't, then <code>keyup()</code> never fires.</p>

<p>Why not?</p>

<p>Thanks!</p>
