How to repeat Animation until key pressed

I try to make character jump repeat until key pressed.

But for now, jump animation repeat, but character don’t jump.

I think it because Jump() function called once until key pressed.

void ATHCharacterBase::OnJumpPressed()
{
	if (IdleType != EIdleType::CROUCH)
	{
		ServerUpdatebJump(true);
		Super::Jump();
	}
}

I try to use while, but it crash editor.

How can I repeat Jump() function until key pressed?