fixing <HOME> and <END> button keybinding