public void keyPressed(KeyEvent e) {

	    key = e.getKeyCode();
	    
	    if (key == KeyEvent.VK_UP){
	    	shoot();
	    }
	    
	    if (key == KeyEvent.VK_W){
	    	shoot();
	    }

	    if (key == KeyEvent.VK_A) {
	    	move_x= -1;
	    }
	    if (key == KeyEvent.VK_LEFT) {
	    	move_x= -1;
	    }

	    if (key == KeyEvent.VK_D) {
	    	move_x = 1;
	    }
	    if (key == KeyEvent.VK_RIGHT) {
	    	move_x= 1;
	    }
	}