Progect not working

I got an Arduino UNO a while ago and found out how to do things. I learnt to code a bit and I was trying to make 2 buttons control a stepper motor to make it go one way or the other, I thought I did it but alas it will only go clockwise when I plug it in. here is the code.

#include <Stepper.h>

const int stepsPerRevolution = 200;

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

void setup() {
myStepper.setSpeed(60);
Serial.begin(9600);
pinMode(0, INPUT);
pinMode(1, INPUT);
}

void loop() {
   if (digitalRead(0) == HIGH)
 {
 Serial.println("clockwise");
 myStepper.step(stepsPerRevolution);
 }
     if (digitalRead(1) == HIGH)
 {
 Serial.println("counterclockwise");
 myStepper.step(-stepsPerRevolution);
 }
}

other info:
button, OUTPUT 5V, INPUT 0
button, OUTPUT 5V, INPUT 1
step motor OUTPUT 5V, INPUT GND, 1N1 8, 1N2 9, 1N3 10 1N4, 11

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

Serial.begin(9600);
pinMode(0, INPUT);
pinMode(1, INPUT);

Quit diddling with the hardware serial pins!

   if (digitalRead(0) == HIGH)

Get real. You can't use pins 0 and 1 while also using Serial.

To clarify what @PaulS has said ...

Serial uses pins 0 and 1 so as a general rule they should not be used for anything else.

Connect your switches to other pins and re-write your program accordingly.

...R

Pin 0 is pulled HIGH on the board by the serial<->USB chip, so you'd expect this behaviour.

On the Uno and Mega boards pin 0 is Serial RX, pin 1 is Serial TX, which makes for problems
if trying to use them for other purposes (it can be done, its not straightforward).

(it can be done, its not straightforward).

Not while also using them for Serial, it can't.