Added support for home and end keys