Fix wraparound bug in WAI-ARIA keyboard first character navigation