Added arrow navigation functionality.