Home and end key patch

This patch adds support for the home and end keys. Apparently the escape sequences differ based on something (my laptop's different from my desktop; both run Linux), but hopefully I've covered the possibilities.