Press button 1 = motor clockwise, press button 2 = motor anti-clockwise

From the tutorial:

void loop()
{
val = digitalRead(inPin); // read the input pin
digitalWrite(ledPin, val); // sets the LED to the button's value
}

Paul