Fix arrow keys error