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