When you want to go to town but can't use your town portal spell or don't have it or don't have a book of town portals then hit Ctrl + Shift + ~ and type "amnesia" and it should ask if you want to exit the dungeon then click "yes" and you will be in town.
This cheat has not been rated yet! Login now to rate.