dmauro/Keypress
A keyboard input capturing utility in which any key can be a modifier key. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5142
- days_rel: n/a
- days_push: 2188
- n_releases_24m: 0
Adoption not part of the score
3151 stars · 307 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Keypress is a small (~9kb), dependency-free JavaScript library for capturing keyboard input in the browser, focused on games. It supports binding to keydown/keyup, treating any key as a modifier, counting combos, and sequence combos.
Use cases
- capture keyboard input in a browser game
- detect keyboard shortcuts and hotkeys in javascript
- make any key act as a modifier key
- bind callbacks to keydown and keyup events
- handle sequence combos like konami-style key sequences
- implement wasd-style multi-key movement combos
When to choose
- you need lightweight, dependency-free keyboard capture for a web game or interactive page
- you need unusual combos where non-modifier keys act as modifiers
- you want keyup and keydown handling with legacy browser (ie8) support
When to avoid
- you need an actively maintained library with modern ES module packaging and recent fixes
- you need OS-level keyboard hooks outside the browser (e.g. global hotkeys in desktop apps)
- you need input beyond the keyboard such as mouse or gamepad handling
Facets
library · maturity maintenance
gui web-development frontend browser keyboard-input keyboard-shortcuts hotkeys keybinding event-handling key-combos coffeescript zero-dependencies games game-development
2 sources
- readme: https://github.com/dmauro/Keypress · fetched 2026-08-28 · 3a8fda00c13c
- homepage: http://dmauro.github.io/Keypress/ · fetched 2026-08-29 · 2a683a3d7a05
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dmauro/Keypress | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem