BB AA for the Win
To win this way simply use the button pattern, bb aa.
As you can see I jump a bit since I pressing it a little fast, but there seems to quite a bit of room for error. I haven't lost a race this way yet.
BB AA eat your cookies whenever.
When I was a kid I could do it the right way, but now I'm too old and impatient.