Unpause Game

I don’t know if Im doing this good, but I managed to make the game pause, but now I can’t find the way to Unpause it.

So the code works whenever the user presses the key ‘P’

void ACharacter::Pause()
{
	if (bPaused)
	{
		bPaused = false; 
		UGameplayStatics::SetGamePaused(GetWorld(), false);
	}
	else 
	{
		bPaused = true;
		UGameplayStatics::SetGamePaused(GetWorld(), true);
	}
	
}

I had a similar issue, maybe you are in the same situation ? Basically in Pause mode my inputs were not all refreshed, so I had to add a manual call. See my post over here : How to refresh Inputs in paused game? - C++ - Epic Developer Community Forums