fix arrow keys disappearing on page change