Mousetrap
Simple library for handling keyboard shortcuts in Javascript
Mousetrap is a standalone library with no external dependencies. It weighs in at around 2kb minified and gzipped and 4.5kb minified. Mousetrap has been tested and should work in Internet Explorer 6+, Safari, Firefox, and Chrome. The bind method is the main call you will be making. 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...