Program got so many errors about expected ) or ; before either
Here's the first line of your code:


#define dw 8; //buttons down



Here's the first error line:


pinMode(dw, INPUT);



Let's put them together and see what we get:

pinMode(8; //buttons down, INPUT);


That's not valid C++. Using the output I've shown you, modify the input until it looks correct. And then keep doing it until the code compiles.