Implement mw.addKeyboardShortcut().