🔨 All in one Utilities

Event Keycode Finder

Great utilities that help you design, program and maintain your website

utilities for you to make a website
When working with keyboard events in JavaScript, it's often necessary to know the specific codes for each key. Our Event Keycode Finder makes this easy. Simply press any key on your keyboard, and the tool will display all the relevant properties of the `KeyboardEvent` object, including the modern `event.key` and `event.code`, as well as the deprecated `event.which`. It also shows the status of modifier keys like Ctrl, Shift, and Alt. It's a must-have for game developers or anyone building complex keyboard-driven interfaces.

⌨️Event Keycode Finder

Press any key to begin

Frequently Asked Questions

What's the difference between `key`, `code`, and `which`?

`key` returns the actual value of the key pressed (e.g., 'a' or 'A'). `code` returns the physical key on the keyboard (e.g., 'KeyA', regardless of Shift). `which` is an older, deprecated property that returns a number code for the key.

Which property should I use?

For modern web development, you should prefer using `event.key` to check for the character that was pressed, or `event.code` to check for the physical key location (useful for things like games).

Related Utilities