This commit separates actions in the command bar from actions in a normal buffer, and implements what is needed to allow rebinding, although an interface for command bar keybindings is not yet exposed to the user.