add pgup/pgdn keys and fix history in multiline edits

I think it would be nice to document what is happening here. Sorry if I'm being a huge nitpick today.