Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial3 Answers
Özgür Ozan Çakmak
11,451 PointsA keyup is the opposite event of a keydown. See, when the user presses a button on the keyboard you trigger the keydown event (because the button/letter is down) when she releases the button it triggers the keyup event (because the key jumps up to its natural cute state, if we are not talking about a sad keyboard).
A crappy image made by yours truly is included:
Sonja Tomcic
6,590 Pointsthanks a lot, this is really helpfull
stevenhohberg
12,328 PointsHello, basically what that means is that an event will occur when you stop pressing the keyboard.
Sonja Tomcic
6,590 PointsMicha Stappenbelt Steven Hohberg thank you!!1
michastappenbelt
21,794 Pointsmichastappenbelt
21,794 PointsHi Sonja,
When the user releases the key, the keyup event is sent.
Source: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent