Building a game or a hotkey-driven app? Use this tool to find the exact JavaScript event values for any key on your keyboard.
Privacy Protected
JavaScript KeyCode Tester
Press any key to get its JavaScript event.key, event.code, and deprecated keyCode values. Essential for frontend developers. Fast, free, and private.
Share Tool
About JavaScript KeyCode Tester
1
Press Key
Tap any key on your keyboard.
2
View Info
See the Key, Code, and ID.
3
Save Your Output
Click the download or copy button to export your results to your device or clipboard.
Key Features
Live Testing
Press any key to see values instantly.
Gamepad Support
Detects connected game controllers (beta).
Copy Code
Click to copy the key code.
Frequently Asked Questions
Many legacy tools still rely on keyCode. We show it for maintenance purposes, but recommend event.code for new projects.
Yes, completely free. No account, subscription, or hidden fees — ever.
Yes. All processing runs directly in your browser — nothing is ever uploaded to a server.
Related Tools
View allLast updated on