Mousetrap
Simple library for handling keyboard shortcuts in Javascript
...This will bind a specified keyboard command to a callback method. If you want to bind multiple key commands to the same callback you can pass in an array for the first argument. Mousetrap 1.4 introduced a generic mod helper which lets you set cross platform shortcuts. The sequence of keys feature was inspired by Gmail. Any keys separated by a space will be considered a sequence. If you type each key in order the final one in the sequence will trigger the callback. If you type a key not in the sequence or wait too long the sequence will reset. ...