Here are basics, see if you can work it out:
pinMode (pin2, INPUT_PULLUP);
pinMode (pin3, INPUT_PULLUP);
pin2state = digitalRead (pin2);
pin3state = digitalRead(pin3);
if (pin2state == LOW && pin3state == LOW){
// do one thing
}
if (pin2state == HIGH && pin3state == LOW){
// do one thing
}
if (pin2state == LOW && pin3state == HIGH){
// do one thing
}
if (pin2state == HIGH && pin3state == HIGH){
// do one thing
}