If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

keyReleased()

If you define a function called keyReleased in your code, then that function will be called whenever the user releases a key (while their keyboard is focused on the right-hand side, your running program).
You can then do things based on the key and/or keyCode of the currently pressed key, if you'd like.

Want to join the conversation?

No posts yet.