Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
A 'KeyboardEvent' property that represents the physical key that was tapped, without regard for the keyboard layout or if any modifier keys were active.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
KeyboardEvent.code on IE is not supported on any IE versions.
KeyboardEvent.code on Edge is fully supported on 79-111, and not supported on 12-18 Edge versions.
KeyboardEvent.code on Firefox is fully supported on 38-113, and not supported on 2-37 Firefox versions.
KeyboardEvent.code on Chrome is fully supported on 48-114, and not supported on 4-47 Chrome versions.
KeyboardEvent.code on Safari is fully supported on 10.1-16.4, and not supported on 3.2-10 Safari versions.
KeyboardEvent.code on Opera is fully supported on 35-95, and not supported on 9.5-34 Opera versions.
KeyboardEvent.code on Safari on iOS is fully supported on 10.3-16.4, and not supported on 3.2-10 Safari on iOS versions.
KeyboardEvent.code on Android Browser is not supported on any Android Browser versions.
KeyboardEvent.code on Opera Mobile is not supported on any Opera Mobile versions.
KeyboardEvent.code on Chrome for Android is not supported on any Chrome for Android versions.
KeyboardEvent.code on Firefox for Android is fully supported on all Firefox for Android versions.
KeyboardEvent.code on Samsung Internet is not supported on any Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:KeyboardEvent.code shows a browser compatibility score of 58. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for KeyboardEvent.code & more
Test your website for KeyboardEvent.code and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?