Fix two issues of user key map for extension commands.

This fixes #9954 and #9953.
I'm getting a JSLint error on this line: `459 '_loadUserKeyMap' was used before it was defined. _loadUserKeyMap();`