button pressed more than 2 seconds do somethingelse

INPUT_PULLUP requires IDE 1.0.3 IIRC.
It can be substituted by
pinMode(pin, INPUT);
digitalWrite(pin, HIGH);