public void keyPressed(KeyEvent key) {
		int keyCode = key.getKeyCode();
		if(keyCode ==KeyEvent.VK_LEFT){
			player.setLeft(true);
		}
		if(keyCode ==KeyEvent.VK_RIGHT){
			player.setRight(true);
		}
		if(keyCode ==KeyEvent.VK_UP){
			player.setUp(true);
		}
		if(keyCode ==KeyEvent.VK_DOWN){
			player.setDown(true);
		}
		if(keyCode ==KeyEvent.VK_Z){
			player.setFiring(true);
		}
	}