 <p>You would need to capture the three key events separately and fire your action only after the third one.</p> <pre><code>var keys = { d: { code: 100, pressed: false, next: 'e' }, e: { code: 101, pressed: false, next: 'v' }, v: { code: 118, pressed: false, next: 'd' } }, nextKey = 'd'; $(document).keypress(function(e) { if (e.keyCode === keys[nextKey].code) { keys[nextKey].pressed = true; nextKey = keys[nextKey].next; } else { keys.d.pressed = false; keys.e.pressed = false; keys.v.pressed = false; nextKey = 'd'; } if (keys.d.pressed &amp;&amp; keys.e.pressed &amp;&amp; keys.v.pressed) { alert('Entering dev mode...'); } });​ </code></pre> <p>There's a number of ways to do this of course. This example doesn't require you to hold the keys down simultaneously, just that you type them in order: <kbd>d</kbd> <kbd>e</kbd> <kbd>v</kbd>. </p> <p>If you used this, you might want to augment it to clear the <code>pressed</code> flags after some time interval.</p> <p>Here's a <a href="http://jsfiddle.net/6eCx2/" rel="nofollow">working example</a>.</p> <hr> <p><sub>Disclaimer: I realize the original question said that the keys should be "pressed together". This is just an alternative as other answerers have already provided sufficient solutions for the keys being pressed together.</sub></p>