Servo as a door lock, How can I ignore a button until later in the program?

sdturner, I copied for forum using IDE

Grumpy_Mike, Thank you! Button 2 will be down at the beginning of the
cycle so if btn1 sets the flag, arduino opens the lock. Then when btn2 opens
and closes it sets the servo back to locked position? so should they both set
flags? I am going to go look for an example.