Resolve key map name instead of KeyMap instance.

Also inject keymap name into KeyMap instance for debugging.

Fix code as nearly all modes are affected by interface change.