public static void handleMovement() {
		if (Renderer.cinematicMode) {
			velX += moveMod;

		} else {
			if (Keyboard.isKeyDown(Keyboard.KEY_A)) {
				velX -=  Math.cos(Math.toRadians(yaw)) * moveMod;
				velZ -=  Math.sin(Math.toRadians(yaw)) * moveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_D)) {
				velX +=  Math.cos(Math.toRadians(yaw)) * moveMod;
				velZ +=  Math.sin(Math.toRadians(yaw)) * moveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_W)) {
				velX -=  Math.cos(Math.toRadians(yaw + 90)) * moveMod;
				velZ -=  Math.sin(Math.toRadians(yaw + 90)) * moveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_S)) {
				velX +=  Math.cos(Math.toRadians(90 + yaw)) * moveMod;
				velZ +=  Math.sin(Math.toRadians(90 + yaw)) * moveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_SPACE)) {
				velY += yMoveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
				velY -= yMoveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_EQUALS)) {
				pitchMod += 10 * yMoveMod;
				yawMod += 10 * yMoveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_MINUS)) {
				pitchMod -= 10 * yMoveMod;
				yawMod -= 10 * yMoveMod;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_E)) {
				wait = !wait;
			}
		}
		pitch -= Mouse.getDY() * pitchMod;
		yaw += Mouse.getDX() * yawMod;
		posX += velX;
		posY += velY;
		posZ += velZ;
		velX *= friction;
		velY *= friction;
		velZ *= friction;
		if(pitch > maxPitch) pitch = maxPitch;
		if(pitch < -maxPitch) pitch = -maxPitch;
		
	}