(c) J~Net 2026 jnetai.com
This is a simple HTML page to capture keyboard keys and their codes directly on screen.
It is especially useful for identifying media keys (Play/Pause, Next Track, Previous Track) or other custom keys for use in web apps or music players.
Unlike console-based solutions, this tool shows everything on the page in a status box with a live press counter.
- Detects any key press
- Shows:
keyCode(numeric value)key(human-readable key name)code(physical key code)location(standard, left, right, numpad)count(number of times the key was pressed)
- Dark theme for easy visibility
- Press the same key multiple times to confirm the correct key code
- Open
keys.htmlin a modern web browser. - Press any key you want to test.
- Observe the key information and counter in the central status box.
- Use the captured
keyCodeorcodevalues to map keys in your JavaScript projects.
Pressing the Play/Pause media key may show: