public void onKeyReleased(int key) {
		keys[key] = false;

		if (key == Keyboard.KEY_RIGHT && !keys[Keyboard.KEY_LEFT]) {
			player.setSpeed(0.0f, player.speed.y, player.speed.z);

		}

		if (key == Keyboard.KEY_LEFT && !keys[Keyboard.KEY_RIGHT]) {
			player.setSpeed(0.0f, player.speed.y, player.speed.z);

		}

		if (key == Keyboard.KEY_UP && !keys[Keyboard.KEY_DOWN]) {
			player.setSpeed(player.speed.x, 0.0f, player.speed.z);

		}

		if (key == Keyboard.KEY_DOWN && !keys[Keyboard.KEY_UP]) {
			player.setSpeed(player.speed.x, 0.0f, player.speed.z);
		}

		if (key == Keyboard.KEY_SPACE)
			player.setSpeed(player.speed.x, player.speed.y, 2.5f);

	}