I\'m looking for a KeyListener for a game I\'m developing in JavaScript. I have no idea how this would work in real code but it would be something like this: >
KeyListener
Did you check the small Mousetrap library?
Mousetrap is a simple library for handling keyboard shortcuts in JavaScript.