DO-WHILE loop --- Waiting for pressing of either of 2 buttons

Now please post your entire sketch using code tags as explained in the sticky posts at the top of the forum.

I see that you have connected switches to pin 0 and 1, they are reserved for serial communications.