Move escapeMap to the top