keypressed code void setup(){
size(1000,1000);
}

void draw(){
background(255,255,255);

fill(0,0,0);
textSize(80);

if(keyPressed == true){
text("Key being held", 250,500);
}
if(keyPressed == false){
text("Key not being held", 175, 500);
}

text(key, 500, 400);

}

back