Use the keypress event
$(document).keypress(function(event) { if (event.which === 666) { action(); } }); I don't have an azerty keyboard or whatever, so I don't get the same keycodes, but the keypress event will return other keycodes, you'll have to check them yourself.
Or you could check for the event.shiftKey