char a,aold; int x; void setup() { fill(0); x=floor(random(27))+65; a=char(x); text(a,50,60); } void draw() { if(keyPressed) { background(204); x=floor(random(27))+65; //print(x," "); a=char(x); //print(a," "); //text(aold,50,20); //text(key,50,40); text(a,50,60); if (key==aold) text("yes",50,80); else text("no",50,80); delay(500); aold=a; } }