Update the keyboard navigation functionality