public static float GetAxis(String axis) {
		if (axis.equalsIgnoreCase("Horizontal")) {
			if (Keyboard.isKeyDown(Keyboard.KEY_D)) {
				return 1;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_A)) {
				return -1;
			}
			return 0;
		}
		else if (axis.equalsIgnoreCase("Vertical")) {
			if (Keyboard.isKeyDown(Keyboard.KEY_W)) {
				return 1;
			}
			if (Keyboard.isKeyDown(Keyboard.KEY_S)) {
				return -1;
			}
			return 0;
		}
		else {
			GuiHandler.AddMessage("Invalid axis: "+axis);
			return 0;
		}
	}