Keyboard events : keydown, keypress and keyup


I am a bit confused with these keyboard events,

  1. what is the sequence of them when I press and release a key?
  2. if I press a key and keep it pressed for some time before releasing, then which key event happened while the key was left pressed down?
  3. Difference between keypress and key down?

Check out this link: