Handling Key Strokes (And Combos) With JavaScript: KeyboardJS

Enabling users to interact with web pages/apps with as many ways as possible is a huge step forward in usability.

KeyboardJS, a standalone JavaScript library, handles the keyboard part and helps us to understand any key strokes and turn them into actions.


The library has support for both single + combo strokes and can work with keyboards of any locale.

It has callbacks for both the “press” and “release” events so that we can trigger functions whenever preferred.