Web platform features explorer

Keyboard lock

Limited availability
Tags: api

The navigator.keyboard.lock() API allows you to capture keys that are normally reserved by the operating system. It can be used to provide an immersive fullscreen experience such as games.

Learning resources on MDN

Browser support

Usage (according to Chrome Platform Status)

~0.008% of page loads. More data at chromestatus.