fix missing keymap documentation

Apparently we need to define the keymap outside of the mode-definition
as the keymap will not show up in the documentation otherwise.