press = digitalRead(analogRead(button>300));
You are asking for analogRead on the pin (button>300). Doesn't look like a valid pin number
You then ask for a digitalRead of the pin that the analogRead might return, which can be 0 to 1023. Too broad of a range for the Arduino. 0-19 for '328P, 0 to 31 for a '1284P, 0-69 for a Mega.