152153154155156157158159160161162
public void keyTyped(KeyEvent e) { } public void keyPressed(KeyEvent e) { Directions direction = null; Turns turn = null; switch (e.getKeyCode()) { case KeyEvent.VK_UP: direction = Directions.FORWARD; break;