public void update() {
		switch(Keyboard.getEventKey()) {
			case Keyboard.KEY_W:
				setUp(Keyboard.getEventKeyState());
				break;
			case Keyboard.KEY_A:
				setLeft(Keyboard.getEventKeyState());
				break;
			case Keyboard.KEY_S:
				setDown(Keyboard.getEventKeyState());
				break;
			case Keyboard.KEY_D:
				setRight(Keyboard.getEventKeyState());
				break;
			case Keyboard.KEY_SPACE:
				setAttack(Keyboard.getEventKeyState());
				break;
			default:
				break;
		}
		setTime();
	}