Keypress is an input capture library with some very special features, it is easy to pick up and use, has a reasonable footprint (~9kb), and has no dependencies.
Here’s some of what Keypress offers:
- Fire on keyup and/or keydown
- Any key can serve as a modifier
- Special “counting” combos
- Sequence combos