Move Emacs keymap config to its own file.

Make sure all the cursor keys work from various terminals.
These should cover just about any terminal emulator.
This includes cursor keys with modifier keys as well.