The onkeypress event is triggered when the user presses a button on the keyboard.

To trigger the onkeypress event, make sure that this window has focus.