Arduino powered security system

have a look at KeypadTutorial and also consider using an RFID which may be simpler