Each house in Free Realms has an exit door. Click the door when it is highlighted to teleport your character back to the last place you were before entering. You can also press the red X button at the top of the screen next to the house type name.