keydown combination
<p>how do i check if a combination of keys are pressed with jquery?</p>

<p>lets say i want to fire up an alert only when the up and down arrow keys are pressed at the same time.</p>

<p>right now im just using:</p>

<pre><code>switch (event.which) {
    case 40:
        alert('down');
        break;
    case 38:
        alert('up');
        break;
    case 37:
        alert('left');
        break;
    case 39:
        alert('right');
        break;
}
</code></pre>
