Keycode Info

Get keyboard event keycodes

How to Use

1

Press a key

Click the input area and press any key.

2

View codes

See keyCode, key, code, and other event properties.

3

Copy value

Click any value to copy it for your code.

Frequently Asked Questions

What is a key code?

Key codes are numbers representing keyboard keys. They're used in JavaScript to detect which key was pressed.

What is the difference between keyCode and key?

keyCode is numeric and deprecated. The key property is the modern way, returning the character or key name.

Why are some key codes different?

Key codes can vary between browsers and keyboard layouts. Use event.key or event.code for consistency.

Related Tools

Popular Tools

Browse More Categories