public void keyPressed(KeyEvent e) {
			 
			switch (e.getKeyCode()) {

			case KeyEvent.VK_RIGHT:

				game.turnRight();
				break;

			case KeyEvent.VK_LEFT:

				game.turnLeft();
				break;
				
			case KeyEvent.VK_UP:

				game.moveFoward();
				break;
				
			case KeyEvent.VK_DOWN:

				game.moveBackward();
				break;
				
			case KeyEvent.VK_SPACE:

				if (this.fireKeyUp == true ) {
					
					fireKeyUp = false;
					game.fireTorpedo();			
				}
				break;				

			default:

				System.out.println("pressed key = " + e.getKeyChar());
				break;
			}

		} // end keyPressed