Press a key

Function declaration: function onKeyPressFunction(event) {}

Function association: document.onkeypress = onKeyPressFunction;

Syntax: event.keyCode : event.charCode : event.which : event.shiftKey : event.ctrlKey : event.altKey