This page is work-in-progress. You can reach me on twitter or mail to rezoner1337@gmail.com

Keyboard

Playground translates key codes into human readable strings a, b, c, f1, comma...

playground({

  keydown: function(event) {

    event.key  /* pressed key name */

  },

  keyup: function(event) {

    event.key  /* pressed key name */

  }

});

You also have access to this.keyboard which can be used to check pressed keys.

if (this.keyboard.keys.ctrl) { }
if (this.keyboard.keys.a) { }

Test the keyboard

Ask question:

Fork me on GitHub