Apply custom keymaps to all prompt modes and document it.

Fixes the issue @carlobaldassi discovered with custom keymaps not being applied in all prompt modes. Also documents use of custom keymaps.