Changed the behaviors of Home and End keys