keyup vs keypress code example
Example: what is keyup and keydown
Keydown and keyup. The keydown events happens when a key is pressed down, and then keyup – when it's released
Keydown and keyup. The keydown events happens when a key is pressed down, and then keyup – when it's released