More initial keymap stuff, gearing up to actually rewrite lookup-key
lowlevel read_char with reference comment from Emacs