Practical Guide

Keyboard Event Inspector โ€” Usage Guide and Technical Principles

Inspect key, code, location, modifiers and repeat in your browser. Compare modern KeyboardEvent values with legacy keyCode and which.

Open tool

Overview

A keyboard event describes the key the browser received and its current modifier state. The values help diagnose shortcut and layout behavior.

Key concepts

KeyboardEvent

The sample shows Shift+A with key A and code KeyA. Event timestamps use milliseconds relative to the pageโ€™s time origin.

Features

Focused capture

The inspector reads events only while its capture area has focus. Key presses keep their normal browser behavior.

Use Cases

Shortcut testing

Compare the events a shortcut receives before and after switching keyboard layouts.

Frequently Asked Questions

What is the difference between key and code?

key describes the input value after the keyboard layout and modifiers are applied. code usually identifies a physical key position. keyCode and which are legacy fields.

Where does processing take place?

The tool processes your input in the current browser session.

Related Documents

Keyboard Event Inspector

Open the tool to try these features.

Open tool