merge from mapjs
move binding of keyboard on/off switch when modal opens to mindmup