No need for any delays. Re-read reply #15. PaulS gave you the necessary algorithm there.
And he's doing that already.
BUT, as soon as A is pressed it checks B right away. The OP doesn't want them to have to press them simultaneously, so if the user isn't infinetsimally quick on B, it'll read B as low.