UI EventsKeyboardEventConstructorKeyboardEvent()Instance propertiesaltKeycharCode Deprecated code ctrlKeyisComposingkeykeyCode Deprecated keyIdentifier Non-standard Deprecated locationmetaKeyrepeatshiftKeyInstance methodsgetModifierState()initKeyboardEvent() Deprecated initKeyEvent() Non-standard Deprecated InheritanceUIEventEventRelated pages for UI EventsCompositionEventFocusEventInputEventMouse
![KeyboardEvent: code property - Web APIs | MDN](https://cdn-ak-scissors.b.st-hatena.com/image/square/aa767575b4232d312d2c5de428f0bf0955805e26/height=288;version=1;width=512/https%3A%2F%2Fdeveloper.mozilla.org%2Fmdn-social-share.cd6c4a5a.png)