add home and end key support