added fix for home and end keys from putty