Programming help

hey.
i have a password kepad and lcd program i want to add to this program servo commands my point is that if the password is correct so the servo will work once at a time (90 degrees) and if the pass word will be wrong the servo remains off
can U add plz to this program the commands that im described above . the program that i have:

#include <Password.h> //Arduino Playground - HomePage
#include <Keypad.h> //Arduino Playground - HomePage
#include <LiquidCrystal.h>

LiquidCrystal lcd(A4, A5, A3, A2, A1, A0);
Password password = Password( "1234" );

const byte ROWS = 4; // Four rows
const byte COLS = 4; // columns
// Define the Keymap
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};

byte rowPins[ROWS] = { 9,8,7,6 };// Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins.
byte colPins[COLS] = { 5,4,3,2, };// Connect keypad COL0, COL1 and COL2 to these Arduino pins.

// Create the Keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup(){

Serial.begin(9600);
lcd.begin(16, 2);
keypad.addEventListener(keypadEvent); //add an event listener for this keypad
}

void loop(){
keypad.getKey();
}

//take care of some special events
void keypadEvent(KeypadEvent eKey){
switch (keypad.getState()){
case PRESSED:
lcd.print("Pressed: ");
lcd.println(eKey);
switch (eKey){
case '*': checkPassword(); break;0
case '#': password.reset(); break;
default: password.append(eKey);
}
}
}

void checkPassword(){
if (password.evaluate()){
lcd.println("Success");
//Add code to run if it works
}else{
lcd.println("Wrong");
//add code to run if it did not work
}
}
thanks !

Have you looked at the Servo examples in the IDE ?

UKHeliBob:
Have you looked at the Servo examples in the IDE ?

i did
but i dont know where to place it in my program

ArduMate:
i did
but i dont know where to place it in my program

I would guess here

  //Add code to run if it works

To start with try simply printing a message when a correct or incorrect password is entered.

Is this your program or did you copy it from somewhere ?

UKHeliBob:
I would guess here

  //Add code to run if it works

To start with try simply printing a message when a correct or incorrect password is entered.

Is this your program or did you copy it from somewhere ?

THE BASE IS COPIED ANY WAY ANY HELP ABOUT MY REQEUST

//Add code to run if it worksThat seems pretty clear.

Please don't SHOUT

Do you have an LCD connected ?
Do you see any messages on it ?

Did you get an extension?