Only call CM.focus() if CM is not already focused.
Fixing this->that.
Dont' force command mode in kbm.register_events.
Only call register_events on top level widget.