Freezing the player while there is a pop up

Hey,
I’m still new to axure.
I’m making a game when there is a dynamic animation of a player which is moved by clicking on the arrows in the keyboard.
I made a pop up which says that the game is paused (after clicking a “pause” buttom).
My question is: when the pop up is coming to the front, how can I do so the player won’t move when I’m trying to move him by the keboard?

I’m lost… please help me.
Thank you!

One thing you could try is adding a condition to your “key pressed” cases (Key Up or Key Down) so they also test for “visibility of widget” —pointing to your popup widget. Thus, they should only fire when the correct key is pressed AND the popup is not visible (hidden).