Code carried out when a key press types a character.
<console.onKeyPress.push <putError key>> writes the key code and character of each key press to the error output.A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.
While the code runs, key holds the key code followed by the character typed.
In ioL version 1.05, onKeyPress is only carried out for some keys. Use onKeyDown to respond to keys, and onInput to respond to typing.