onKeyPress
The event occurs when a key is pressed. You can access the event information, using the event parameter.
Further information about key events
console.log(event);
/*
event.type
event.target
event.which
event.altKey
event.keyCode
event.shiftKey
event.ctrlKey
*/
Last updated