Kybrd - A tiny keyboard state library
Example
var keyboard = ;keyboard; // Returns true if 'a' is pressedkeyboard; // Use strings to describe non alpha-numeric keys
API Documentation
Kybrd
element;
Constructor.
Parameters:
- element - The element to listen to keyboard events on.
Kybrd.prototype.isPressed(key);
Check whether a key is pressed.
Parameters:
- key - The character or name of the key.