ESC -> SPACE and then frame perfect ESC when pause screen fully goes away. If the pause screen reopens, then you waited a bit too long with the final ESC press.