# Keycode Info Guide

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

- Tool: https://ilham.dev/tools/keycode-info/
- Guide URL: https://ilham.dev/guides/keycode-info/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Browser Debugging Utilities (https://ilham.dev/guides/browser-debugging/)

## 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.

## Use the tool

Open https://ilham.dev/tools/keycode-info/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Web.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## 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.