_attachDefaultKeyboardShortcuts: slightly easier code.