New feature: Recognize Page Up/Down Keys, jump to history start/end

Also recognize the Insert key, although not doing anything with it.
More like an expansion hook for future work.
Unix support tested.
Windows support is not tested.