public void keyPressed(KeyEvent e) {
		int key = e.getKeyCode();
	    switch (key) {
	    	case KeyEvent.VK_UP:
	    		action.thrust = 1;
	    		break;
	    	case KeyEvent.VK_DOWN:
	    		action.thrust = -1;
	    		break;
		    case KeyEvent.VK_LEFT:
		    	action.turn = -1;
		    	break;
		    case KeyEvent.VK_RIGHT:
		    	action.turn = +1;
		    	break;
		    case KeyEvent.VK_SPACE:
		    	action.shoot = true;
		      	break;
		    case KeyEvent.VK_ESCAPE:
		    	action.esc = true;
		    	break;
	    }
	}