Color 1 of 8 — Click to cycle, Esc to exit
Data & Security • Android KeyCode Inspector

Android KeyCode & Keyboard Event Inspector

Live keyboard and hardware button inspector mapping browser event codes to Android Linux Kernel input KeyCode constants.

100% Client-Side Privacy Universal Hardware Compatibility Zero Server Data Upload Instant Execution • No Install
100% Client-SideExecution Mode
HTML5 • WebAPICore Engine
Zero Data StoredUser Privacy
Free • No InstallAccess Tier

Android Hardware KeyCode & Keyboard Inspector

Data & Security

Live keyboard and hardware button inspector mapping browser event codes to Android Linux Kernel input KeyCode constants.

Click here and press any key / OTG button
event.key:—
event.code:—
JavaScript keyCode:—
Android Linux Mapping:—
Active Modifiers:None
Android KeyEvent Reference Mapping:
Volume Up: KEYCODE_VOLUME_UP (24) Volume Down: KEYCODE_VOLUME_DOWN (25) Power Key: KEYCODE_POWER (26) Back Key: KEYCODE_BACK (4) Home Key: KEYCODE_HOME (3) Menu Key: KEYCODE_MENU (82)
Quick Actions Ready
Android Keycodes: Android recovery menu navigation depends on volume keys (KeyCode 24 = KEYCODE_VOLUME_UP, KeyCode 25 = KEYCODE_VOLUME_DOWN, KeyCode 26 = KEYCODE_POWER). This tool identifies incoming scancodes.

Frequently Asked Questions

What is an Android KeyCode event?

In Android OS development, physical buttons (Volume Up/Down, Power, Camera Shutter, Back, Home) and external USB keyboards dispatch integer keycodes (e.g. KEYCODE_VOLUME_UP = 24, KEYCODE_POWER = 26) through the Linux input subsystem.

What is the difference between event.key and event.code in JavaScript?

event.key represents the printable character value produced (considering Shift, CapsLock, and keyboard layout), whereas event.code represents the physical mechanical key position on the keyboard.

How do technicians test damaged phone volume and power buttons?

Connect the phone to a PC with USB debugging enabled and run adb shell getevent or open this keycode inspector in the mobile browser to verify if microswitches register button clicks reliably.

Related Diagnostics & Tools

Browse All 27 Online Diagnostic Utilities

Complete client-side browser tools for Android phone technicians, hardware testers, and software engineers. Runs 100% locally with zero external uploads.

Display & Touch Diagnostics

Audio & Sensor Testers

Android & Firmware Utilities

Network & Hardware Diagnostics

Data, Security & Developer Tools

← Back to Utility Suite Hub (All 27 Tools)