Street Fighter, combos like, keyboard shortcuts in javascript

MouseTrap is a lightweight, 1.4kb minified and gzipped, javascript library. Developed by Creaig Campbell. That allow you to, easily create, and listen to keyboard shortcuts.

The sintax for the implementation is as simple as:

Mousetrap.bind(['command+s', 'ctrl+s'],function(){
              //callback goes here
          });
          

And it also allow you to declare sequences of keys like this:

Mousetrap.bind('up up down down left right left right b a enter', function() {
              //callback goes here
          });
          

You can find it on github, or test it’s awesomeness firing an Hadoken (down down right right a)