public void updateInput(Input input, float deltaTime) {
		if (input.isKeyPressed(Input.KEY_I)) {
			inventory.show(gameBase.getCurrentState());
		}
		float speed = 128f;
		targetSpeed = 0;
		float targetDirectionX = 0;
		float targetDirectionY = 0;
		if (input.isKeyDown(Input.KEY_W)) {
			targetSpeed = speed;
			if (input.isKeyDown(Input.KEY_SPACE)) {
				targetSpeed = 512f;
			}
			targetDirectionY--;
		}

		if (input.isKeyDown(Input.KEY_S)) {
			targetSpeed = -speed;
			if (input.isKeyDown(Input.KEY_SPACE)) {
				targetSpeed = -512f;
			}
			targetDirectionY++;
		}

		// if (input.isKeyDown(Input.KEY_A)) {
		// targetSpeed = speed;
		// if (input.isKeyDown(Input.KEY_SPACE)) {
		// targetSpeed = 512f;
		// }
		// targetDirectionX--;
		// }
		//
		// if (input.isKeyDown(Input.KEY_D)) {
		// targetSpeed = speed;
		// if (input.isKeyDown(Input.KEY_SPACE)) {
		// targetSpeed = 512f;
		// }
		// targetDirectionX++;
		// }

		if (input.isKeyDown(Input.KEY_D)) {
			targetRotation += rotationSpeed * deltaTime / 1000f;
		} else if (input.isKeyDown(Input.KEY_A)) {
			targetRotation -= rotationSpeed * deltaTime / 1000f;
		}
		directionX = Interpolator.get(directionX, targetDirectionX, 4f,
				deltaTime);
		directionY = Interpolator.get(directionY, targetDirectionY, 4f,
				deltaTime);
		currentSpeed = Interpolator.get(currentSpeed, targetSpeed, 4f,
				deltaTime);
		playerEntity.setSpeed(currentSpeed);
		// playerEntity.movementDirection.set(directionX, directionY);
		currentRotation = Interpolator.get(currentRotation, targetRotation, 2f,
				deltaTime);
		playerEntity.viewDirection.set((float) Math.cos(currentRotation),
				(float) Math.sin(currentRotation));
		playerEntity.movementDirection.set(playerEntity.viewDirection);
	}