@Override
	public boolean doEvent(Event e) {

		switch (e.getType()) {
			case KEY_PRESSED:
				if (e.getValue() == Keyboard.KEY_LEFT) playerSpeedX -= horizontalSpeed;
				if (e.getValue() == Keyboard.KEY_RIGHT) playerSpeedX += horizontalSpeed;
				if (e.getValue() == Keyboard.KEY_UP && !playerFalling) {
					playerFalling = true;
					playerSpeedY -= jumpSpeed; 
				}
				break;
			case KEY_RELEASED:
				if (e.getValue() == Keyboard.KEY_LEFT) playerSpeedX += horizontalSpeed;
				if (e.getValue() == Keyboard.KEY_RIGHT) playerSpeedX -= horizontalSpeed;
				break;
			default:
				break;
		}
		
		return false;
	}