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