A simple, elegant tool to display and analyze keyboard events in your browser.
- Shows all key events and their properties (
key,code,keyCode,location,modifiers,repeat, etc.) - Detects and displays modifier keys (
Ctrl,Shift,Alt,Meta/Cmd,Fn) and their combinations (e.g.Ctrl+X) - Blocks default browser and OS actions as much as possible for uninterrupted testing
- Responsive, minimal UI — works on desktop and mobile
- No dependencies, pure JavaScript and CSS
- Useful for developers to test keyboard layouts, shortcuts, and event properties
Open komed3.github.io/keycodes in your browser.
Press any key or key combination.
All relevant event data will be displayed instantly.
You can use this tool as a standalone page or embed the logic in your own projects to debug or visualize keyboard input.
© 2025 Paul Köhler (komed3) / MIT License