# dmauro/Keypress

A keyboard input capturing utility in which any key can be a modifier key.

Repository: https://github.com/dmauro/Keypress
Canonical: https://ross.abutalabs.com/products/keypress
Homepage: http://dmauro.github.io/Keypress/
Language: CoffeeScript
License: Apache-2.0
License Family: permissive
Last push: 2020-09-06T00:02:02+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5142, "days_push": 2188, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3151, forks 307 (observed 2026-08-28T04:07:46.177206+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: gui
- domain: web-development, frontend
- platform: browser
- tags: keyboard-input, keyboard-shortcuts, hotkeys, keybinding, event-handling, key-combos, coffeescript, zero-dependencies, games, game-development

## Member repositories
- dmauro/Keypress (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:46.177206+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:53.204494+00:00, confidence not recorded.
  - readme: https://github.com/dmauro/Keypress (fetched 2026-08-28T04:07:46.177206+00:00, sha 3a8fda00c13c)
  - homepage: http://dmauro.github.io/Keypress/ (fetched 2026-08-29T09:40:37.373664+00:00, sha 2a683a3d7a05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
