Unregister commands

At the moment it is not possible to have multiple key event handlers for the same command. This can be solved by unregistering the command, wrapping the handler and registering again.