1//onKeyDown onKeyPress onKeyUp
2
3The onKeyDown event is triggered when the user presses a key.
4The onKeyUp event is triggered when the user releases a key.
5The onKeyPress event is triggered when the user presses & releases a key.
6// OR //////////////////////////////////////////////
7onKeyDown => happens first
8onKeyPress => Press happens second (when text is entered)
9onKeyUp => Up happens last (when text input is complete).
1A function is triggered when the user releases a key in an input field ( such as textarea, <input>, etc.)