Well that's weird! The full screen going off with esc is something you probably can't do anything about but everything can be closed by a specific close button too as a workaround. But I really don't understand why it would move the player character at all while doing so. Where about was your character positioned before this move happened?