var event = new KeyboardEvent('keydown', {keyCode: 0x20}); document.activeElement.dispatchEvent(event);
true