printing the analogRead() functions result crashes Arduino
The capacitor you have is rather large on the Analogue input, normally at this position it would be for debounce. Try something in the range of 100nF. Another idea would be to increase R8 to 10k.
https://www.g7smy.co.uk/2015/09/multiple-buttons-on-one-pin-with-an-arduino/