Keyboard events : keydown, keypress and keyup

#1

https://www.codecademy.com/courses/learn-jquery/lessons/mouse-events/exercises/review

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?
#2

Check out this link: https://www.w3schools.com/jsref/event_onkeypress.asp