This seems like a cool little bit of code that some of you may want to add for your games. Not sure if it’s really necessary, but I wanted to post it to show it to you. It’s got some nice functionality for combination keys and so forth. You can find it at http://dmauro.github.io/Keypress/.
Random Quote:
Reusability is key in reducing bugs and coding quickly. The more I use a piece of code, the more confident and familiar I become with it, which in turn significantly speeds up my development time. — Robert Duchnik, jQuery Plugin Development In 30 Minutes