# Keycode Info

Press a key to see its code, key and modifier state.

## URL

https://ilham.dev/tools/keycode-info/

## What It Does

Press a key and see everything the browser reports about it: the key name, the legacy keyCode and whichCode, the physical position on the keyboard, and which modifier keys were held. It is for wiring up a shortcut without guessing.

## Features

- Runs in the browser
- No login required

## Input

text input.

## Output

text output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- Why is keyCode deprecated?




## Questions

### Why is keyCode deprecated?

It is inconsistent across layouts and languages — the same physical key reports different values. Use event.key for the character and event.code for the physical position, and press a key here to see the difference.

