// Sketch 1.0: Key Events! function setup() { createCanvas(400, 400); } function draw() { background(220); if(keyIsPressed) { print("Hello World"); // see the console below ↓ } } // Reference: https://p5js.org/reference/