In this toy example, the game will keep repeatedly showing a menu until the door is unlocked:
You are welcome