#include <Stepper.h>

const int stepsPerRevolution = 200;

Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);

void setup() {
  pinMode(2, INPUT);
  pinMode(3, INPUT);
  myStepper.setSpeed(60);
}

void loop() {
  if (digitalRead(2) == HIGH) {
    if (digitalRead(3) == HIGH) {
      myStepper.step(20);
    } else {
      myStepper.step(-20);
    }
  }
}