Keyboard typer Program //At the top String myText = ""; void keyPressed (){ if(keyCode == ENTER){ //Here is where you would process whatever happens when you press 'enter' input = ""; } else if(keyCode != BACKSPACE) input += key; else if(input.length() > 0) input = input.substring(0, input.length()- 1); }