Fix two issues of user key map for extension commands.

This fixes #9954 and #9953.
This might not be necessary if code listens for "keyBindingAdded" event.