Keypress

Keypress is a robust keyboard input capturing Javascript utility focused on input for games. For details and documentation, please visit http://dmauro.github.io/Keypress/.

Simple Example

1  var listener = new window.keypress.Listener()
2  listener.simple_combo("shift s", function() {
3    console.log("You pressed shift and s");
4    $('#shift-s').slideToggle()
5  })