int count = 0; void draw(){ if(keyPressed && keyCode==ALT){ println("Alt was pressed: "+count); count++; } }