Fix arrow navigation functionality.