1.0.0 • Published 5 years ago
pressed-js v1.0.0
pressed-js
Detect 'onkeydown' key
Install
$ npm install --save pressed-js
Usage
spcebar pressed
console.log(pressedjs.spacebar)
//=> true
numpad "1" not pressed
console.log(pressedjs.numpadOne)
//=> false
License
MIT ©