Create a password with buttons

Hi all, i am a newbie about arduino :/... and i would like to create an unique password using buttons.
i mean like button3->button8->button1 => turn on the led

I think it is pretty easy, but i don't know how... any idea?

-Thanks

Write some code to detect when a given button is pressed.

Write some code to wait until no buttons are pressed and then wait until one button is pressed and return a number indicating which button was pressed. If your buttons are represented as pin numbers in an array then the array index number would be the obvious way to represent the button's identity.

Write some code to decide when to start entering a code, and then wait for the required number of button presses to occur, and save each button press in an array. At the end of this activity, the array contains your 'password'.