Tip: Definitely check out the Mousetrap website. It is built around what it does and after pressing a few keys or key combos you will know the nuts and bolts.
Combokeys has been refactored to better fit the Node.js environment. Unlike Moustrap, Combokeys is a constructor and doesn't automatically listen on the document. Instead, you can specify which element it listens to for keyboard shortcuts. It has support for keypress, keydown, and keyup events on specific keys, keyboard combinations, or key sequences. It's almost like hitting cheatcodes in GTA.
It is around 3.3kb minified and gzipped and 9.9kb minified, has no external dependencies, and has been tested in the following browsers:
You can also build an AMD-compatible version by running npm run build. This creates a universally compatible dist/combokeys.js, which you can use via RequireJS, or include directly in a <script> tag with the global variable Combokeys.
Tip: Check out React Shorcuts which has Combokeys under the hood.