if(currentProcess != null && event.getKeyCode() == KeyEvent.VK_ENTER) event.consume();
if(currentProcess != null) {     if(event.getKeyCode() != KeyEvent.VK_ESCAPE) { char character;   if((character = event.getKeyChar()) != KeyEvent.CHAR_UNDEFINED) { processInput.print(character); addToTextArea(String.valueOf(character)); } event.consume(); } }
    public void keyPressed(KeyEvent event) {        if(currentProcess != null && event.getKeyCode() == KeyEvent.VK_ENTER)            event.consume();    }