No problem. But now that I think about it, you will probably still have an issue if you use the escape button to exit another scene, since it's likely that you will still have the escape button pressed for a few frames by the time that the map scene comes back up.
If so, I'd recommend changing the
If: Button [Cancel] is pressed down condition to this (put it inside the condition's script box):
JavaScript:
Input.isTriggered("escape")
Actually, if you're doing that, you can just combine everything into one condition. So just edit the
If: Button [Cancel] is pressed down conditional branch that you already have, tick the 'Script' box, and paste this in there:
JavaScript:
Input.isTriggered("escape") && !$gameMessage.isBusy() && SceneManager._scene instanceof Scene_Map