public void run() {
		while(isRunning()) {
			if(isEnabled()) {
				while(Keyboard.next()) {
					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();
				}
			}
			try {
				Thread.sleep(5);
			} catch (InterruptedException e) {
				e.printStackTrace();
			} //Slight Speed Limiter
		}
	}