This lesson teaches students how to develop interactive sketches that respond to user input from the keyboard. Students also explore how key codes are used to represent physical keys on the keyboard and use them in their sketches.
Students will be able to:
keyIsPressed
system variable to create interactive p5.js sketches that respond to any pressed keykeyIsDown()
function to create interactive p5.js sketches that respond to a specific key being pressedThese are all the activities included in the lesson