To Develop Traffic Control Circuit with sequential password "Timing"

Hi
I am new in Arduino
I designed a hardware using nano that require code to control traffic/ access. The circuit has five input password buttons connected to D2,D4,D5,D6&D7(starting from D2 to D7 sequentially) and one input access rejected button connected to D8 which can be press at any time to reject access. the circuit outputs is connected to D9, D10 and D11 where D9 is ACCESS AGAIN after accuratly pressing/ depressing D2 to D7 sequentially at TIME INTERVAL of 1sec to 1.5sec, D10 is WRONG PASSWORD, when first, the pressing of each input buttons is below 1sec or above 1.5sec interval (so for a total of five buttons below 5seconds or 7.5 seconds) and secondly, when two or more buttons is depressed at the same time. And D11 is REJECT output, when D8 is press at any time for refusal.
Please, Can someone help me with the code

My advice: put aside the idea of code for the time being.

Get some blank paper and a pencil + eraser. Write down how the various inputs are going to affect the program. Work out the order in which things must happen to open whatever. Decide what and when the various indicators will be illuminated. Keep a list of variables needed to store intermediate values while approaching the goal. Keep an eye out for operations which are repeated two or more times - these can be converted to functions to save coding effort and simplify the sketch.

In short, working out and refining what must happen ahead of time is a lot easier than doing it simultaneously with learning the language/syntax.

Thanks Edison for wonderful advice
Infact, the circuit has ten buttons arranged and labeled 0 to 9 (keypad), five not connected at all and the other five to GND to supply 0volt to nano inputs(D2,D4,D5,D6 and D7) when depressed, this active inputs are mix within the 0 to 9 numbers so that only the person with correct numbers will again access and access will be again only when the correct numbers are depressed (i.e D9 HIGH) and when the buttons are depressed too slow fast( less than 1sec) or too slow (above than 1.5sec) access will be denied( wrong password) = D10 HIGH and D9 LOW
Thanks again

In addition to what @dougp has said I think you need to step back from the details of the buttons for the moment and describe the things that need to happen. Think of the buttons as details that can be figured out later.

At the start of a project I find it very helpful to write down the important steps that need to happen with one step on each line. Then I go back over my list and see if I can break any line down into a series of smaller steps. When I have things written down at a fine level of detail most of the thinking about the program will have been done without writing a single line of code. And when the logic of the problem is clear it is generally very straightforward to write suitable code to give effect to it.

...R
Planning and Implementing a Program

Big thanks you to Robin2 and dougp.
After going through the link you sent / posted, it became clear that i was indeed missing something. i think planning guide is an important tool for every newcomer.
i feel more confident going into the project now, maybe i will need some help during the process but certainly not this much.
i really wish you could mentor me. PLEASE!
Thanks for your advice once more

Kenduvik:
i really wish you could mentor me. PLEASE!

You are welcome to ask more questions here if you get stuck.

Have fun.

...R