Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 266 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 266 Bytes

speedr-keyboard

Install

$ npm install --save speedr-keyboard

Usage

import {Keyboard, Keys} from 'speedr-keyboard'

let kb = new Keyboard(window)

kb.start()
kb.isDown(Keys.SPACE) // false
kb.stop()

License

MIT © Florent Cailhol