Crafty.keydown

Check which keys (referred by Crafty.keys key codes) are currently down.

Example

// is "Shift" currently pressed?
var shiftDown = !!Crafty.keydown[Crafty.keys.SHIFT];