Yep, read that. Tried it. Doesn't seem to work.
If it works, then this should toggle the LED; it sets it on and leaves it on:
int pin=13;
void setup() {
pinMode(pin, INPUT);
pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);
}
void loop() {
digitalWrite(pin, !digitalRead(pin));
delay(500);
}