Gets the keymap for the mode. This keymap will be inserted into the keymap chain of the mode's buffer.