Tabbing through a checkout form in Phoenix and got stuck on a hidden button for 4 tries
Turns out pressing Esc after each failed tab press closed the mystery popup and let me jump straight to the pay field, so if you hit a form that traps your cursor in some invisible loop next time, give Esc a shot and tell me if it actually works for you.