To leave the dungeon or any adventure, you need to find the exit. The maps are like a maze and it can get confusing in the beginning, but if you open the map (press M or TAB) you can zoom in and out and check the paths. The paths fade-in where there’s undiscovered territory. That’s where you need to go.
If you already visited the exit room, it will be marked on the map with a little blue arrow.
Another way to leave the adventure is with a town scroll. But you won’t be able to carry your loot out, this is just for emergencies when you want to quit the adventure faster (without dying and losing your virtual gear).
Categories