Fix arrow key inversion