mw.addKeyboardShortcut now receives a function instead of function name.