KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.
Number representing the Unicode reference number of the key; this attribute is used only by the
keypress event. For keys whose
char attribute contains multiple characters, this is the Unicode value of the first character in that attribute. In Firefox 26 this returns codes for printable characters.
Warning: This attribute is deprecated; you should use
KeyboardEvent.key instead, if available.
DOMString representing the key value of the key represented by the event.
Number representing the location of the key on the keyboard or other input device.
Boolean indicating if a modifier key such as Alt, Shift, Ctrl, or Meta, was pressed when the event was created.