Press botten make led light up for 2 sec ( without the delay() code )

Hi i really want to know how to write some code with some delay in it, But i du not want my pogram to be paused ny the delay()

ad far as i have found out its something about the sketch blink without delay, but i can not see what to change?

const int ledPin = 13;

int bottenpin = 3; //

int ledState = LOW;
long previousMillis = 0;

long interval = 2000;

void setup() {
pinMode(ledPin, OUTPUT);
pinMode(bottenpin, INPUT);
}

void loop(){
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval) {
previousMillis = currentMillis;

if (ledState == LOW)
ledState = HIGH;
else
ledState = LOW;
digitalWrite(ledPin, ledState);
}
}

Can you please edit the code so that the bottonpin 3 turns on the led and keeps it on for like 2 secounds?
Thanks..

Can you please edit the code so that the bottonpin 3 turns on the led and keeps it on for like 2 secounds?

No you will learn nothing that way.
Learn how that sketch works.
This might help:-
http://www.thebox.myzen.co.uk/Tutorial/State_Machine.html

LOOK AT THE UPPER RIGHT CORNER OF THE POST WINDOW.
DO YOU SEE A BUTTON LABELED "MODIFY" ?
CLICK the MODIFY button.
Highlight your code.
LOOK UP AT THE TOOLBARS .SECOND ROW, THIRD FROM THE RIGHT. DO YOU SEE A BUTTON WITH THE "#" SYMBOL ON IT ?
CLICK THE "#" CODE button.
CLICK the save button.