Pocket Dev Tools
Search by task or app nameSearchContact us
Pricing

Keycode and key event viewer

See key, code, keyCode, location, modifiers and IME composition for any key press, and copy the values as a code snippet.

What you can do

Keycode and key event viewer

See key, code, keyCode, location, modifiers and IME composition for any key press, and copy the values as a code snippet.

Input

Click the box and press a key. Read the values, then copy the snippet for your code.

Conditions

keyCode, which and charCode are deprecated but still shown for older code. Use key and code in new projects.

How to use

  1. Start

    Click the box and press a key. Read the values, then copy the snippet for your code.

Useful when

Keycode and key event viewer

Pressing the left Shift key shows key Shift, code ShiftLeft, location left and the shift modifier.

Conditions

Keycode and key event viewer

keyCode, which and charCode are deprecated but still shown for older code. Use key and code in new projects.

Pressing the left Shift key shows key Shift, code ShiftLeft, location left and the shift modifier.

Frequently asked questions

What is the difference between key and code?

key is the character or action produced, which changes with layout and modifiers. code is the physical key position, which stays the same across layouts.

Input and results

Input
Click the box and press a key. Read the values, then copy the snippet for your code.
Result
See key, code, keyCode, location, modifiers and IME composition for any key press, and copy the values as a code snippet.
Conditions
keyCode, which and charCode are deprecated but still shown for older code. Use key and code in new projects.

Current settings

Search tools