All About The Keyboard – Handling Keyboard Shortcuts In JavaScript: Mousetrap
Mousetrap is a simple library for handling keyboard shortcuts in Javascript. Mousetrap is a standalone library with no external dependencies. It weighs in at around 1.5kb minified and gzipped. It has support for keypress, keydown, and keyup events on specific keys, keyboard combinations, or key sequences.