add pgup/pgdn keys and fix history in multiline edits