Sounds like a state machine. What should your code do if both buttons are pressed?
Sort of psuedo-code here. Still on my 1st cup of coffee.
int state;
void loop () {
state = 0;
if (digitalRead(PIN_A) == HIGH state = state || 1;
if (digitalRead(PIN_B) == HIGH state = state || 2;
switch (state) {
case 1:
// dooby dooby dooohhh (button 1 stuff)
break;
case 2:
// da doo doo doo (button 2 stuff)
break;
case 3: // both buttons are pushed
// dooo that voodoo that you doooo
break;
default:
// maybe there is no do to do
}