Fire keyup while other keys are still pressed
<p>I want to check the length of the value of an input and automatically skip to the next one when 3 is reached. I have the code for the skipping, but the way the keyup events are queued are causing me headaches..</p>

<p>Example handler for an input field: </p>

<pre><code>    $('input').on('keyup', function (e) {

    var $this = $(this);
    var code = e.keyCode || e.which;

    alert(String.fromCharCode(code)+' '+$this.val());

    // Handling of $this.val()==3

});
</code></pre>

<p><a href="http://jsfiddle.net/tPyTq/1/" rel="nofollow">http://jsfiddle.net/tPyTq/1/</a></p>

<p>Type three letters before releasing the keys. All of the events already know the final value of the input and therefore my check for the length would fire prematurely and for all three letters.</p>

<p>How can I make the keyup-event fire, while other keys are still pressed?
Please ask, if clarification is needed.</p>
