@Override
	public void keyReleased(KeyEvent key) {
		int keyCode = key.getKeyCode();
		if (keyCode == KeyEvent.VK_LEFT) {
			player.setLeft(false);
			player.setDownLeft(false);
			player.setUpLeft(false);
		}
		if (keyCode == KeyEvent.VK_RIGHT) {
			player.setRight(false);
			player.setUpRight(false);
			player.setDownRight(false);
		}
		if (keyCode == KeyEvent.VK_UP) {
			player.setUp(false);
			player.setUpRight(false);
			player.setUpLeft(false);
		}
		if (keyCode == KeyEvent.VK_DOWN) {
			player.setDown(false);
			player.setDownLeft(false);
			player.setDownRight(false);
		}
		if (keyCode == KeyEvent.VK_F) {
			player.setFiring(false);
		}
	}