Is this code needed anymore?  Now that there's a global shortcut registered, KeyBindingManager should always be invoking the command directly.  Since KBM uses a capture listener, I'm not sure it's even possible to hit this codepath here anymore...