Set everything to be based on commands, like in the `config_dialog`, and the key bindings would be just a bind to the command, like Emacs.