Javascript KeyboardEvent console.log
{
isTrusted: true
key: b
code: KeyB
keyCode: 66
DOM_KEY_LOCATION_LEFT: 1
DOM_KEY_LOCATION_RIGHT: 2
DOM_KEY_LOCATION_NUMPAD: 3
getModifierState: function getModifierState() { [native code] }
initKeyboardEvent: function initKeyboardEvent() { [native code] }
view: [object Window]
sourceCapabilities: [object InputDeviceCapabilities]
which: 66
initUIEvent: function initUIEvent() { [native code] }
type: keyup
target: [object HTMLBodyElement]
currentTarget: [object Window]
eventPhase: 1
bubbles: true
cancelable: true
defaultPrevented: true
composed: true
timeStamp: 2427
srcElement: [object HTMLBodyElement]
CAPTURING_PHASE: 1
AT_TARGET: 2
BUBBLING_PHASE: 3
composedPath: function composedPath() { [native code] }
initEvent: function initEvent() { [native code] }
preventDefault: function preventDefault() { [native code] }
stopImmediatePropagation: function stopImmediatePropagation() { [native code] }
stopPropagation: function stopPropagation() { [native code] }
}