add support for home and end buttons