Inputs from outside of battle get registered at the start of battle, and to get back to the fight command, you need to input directions. It creates an endless cycle. Impressively, when they got Pidgeotto out in a really long battle, everyone switched to hitting a in sequence and things went pretty well.