What is the difference between these three events? Upon googling I found that
The KeyDown event is triggered when
the user presses a Key.
The KeyUp event is triggered when the
user releases a Key.
The KeyPress event is triggered when
the user presses & releases a Key.
(onKeyDown followed by onKeyUp)
Check here for the archived link originally used in this answer.
From that link:
In theory, the keydown and keyup events represent keys being pressed or released, while the keypress event represents a character being typed. The implementation of the theory is not same in all browsers.