public void keyPressed() { if (currentLarge == null) { if (parent.key == '(') { parent.saveFrame("VASTMC2-####.png"); record = true; // disable 'cos text should come first } else if (parent.key == ')') { addNew(); } } else { /* * if(e.getKeyCode()==PConstants.ENTER){ //finish annotation! } */ } /* * else if (parent.key == 'S') { * parent.saveFrame("VASTMC2-large-####.png"); record = true; } } */ }