public void keyTyped(KeyEvent e){
            if (e.getKeyChar() == 10){
                startPressed = true;
            }
            if (e.getKeyChar() == 27){
                System.exit(0);
            }
        }