What is Key Code Finder?
When programming keyboard shortcuts or web interactions you need to know exactly what values JavaScript reports for each key. This tool shows you the event properties in real time: event.key, event.code, the legacy keyCode and the active modifiers (Ctrl, Shift, Alt, Meta).
Just press a key and see its values instantly, without opening the console. It's the fastest way to find out what to compare in a keydown handler, especially with special keys whose code isn't obvious.
Frequently asked questions
How do I know what value a key returns in JavaScript?
Press the key in the tool and you will see event.key, event.code, the keyCode and active modifiers live.
What is the difference between event.key and event.code?
key is the produced character (depends on keyboard language); code is the physical key, always the same regardless of layout.
Is keyCode deprecated?
Yes, event.keyCode is deprecated. Use event.key or event.code instead.
Is it free?
Yes, all NewKit tools are completely free.
Is my data sent to a server?
No. Processing happens 100% in your browser, so it is safe even for sensitive data.