public void update() {
		boolean startJump = false;
		if (keyUp & onGround) {
			startJump = true;
			yMoveMent = jumpSpeed;
		} else {
			yMoveMent += falingSpeed;
			if(yMoveMent > maxfalingSpeed){
				yMoveMent = maxfalingSpeed;
			}
		}
		if (keyRight) {
			xMoveMent = speed;
			lookingRight = true;
			action = ACTION_MOVE;
		} else if (keyLeft) {
			xMoveMent = -speed;
			lookingRight = false;
			action = ACTION_MOVE;
		} else {
			xMoveMent = 0;
			action = ACTION_IDLE;
		}
		tryMove();
		if (yMoveMent < 0) {
			action = ACTION_JUMP;
			if (startJump) {
				SoundManager.play("jump");
			}
		} else if (yMoveMent > 0) {
			action = ACTION_FALL;
		}
		if (hasWinn) {
			action = ACTION_WINN;
		}
	}