Input & Interaction
Keyboard API
Inspect physical key layouts and capture physical key presses using Keyboard Map API.
Checking support...
Feature Not SupportedThis browser does not support the Keyboard API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
if (navigator.keyboard) {
const layout = await navigator.keyboard.getLayoutMap();
}About the Keyboard API Web API
Keyboard API allows capturing physical key presses and querying layout mappings.
Specification:W3C & WHATWG Web API Standard
Sponsored Content