You have a few hours to find the final room after opening the Dungeon door. During this time, you are free to enter and exit the Dungeon as much as you wish. Yet when your time is over, you can get out of the dungeon, but it will be impossible to return. Next time you unlock the door with another key, you descend into a completely new Dungeon.