To capture keyboard activity, jQuery provides three keyboard events: keyup(), keydown(), and keypress():
- keyup() – When the user releases a key on the keyboard, this function is called.
- keydown() – When the user presses a key on the keyboard, this function is called.
- keypress() – This function is called whenever the user touches a key on the keyboard.
Share a personalized message with your friends.