Am I right in assuming that you did not write the code in post #1 ?
This is an example from it of testing a button:
if ((digitalRead(Stop1) == LOW))
{
// act on a button press . Button is high side so LOW is pressed and HIGH is not pressed
// here you set the timer and switch the led on.
}