Added support for home and end keys

This is a fix for one of the issues brought up in #110.