Lighting up an LED after entering a "password"

What I need though is when I type 'A' the first led lights up, when I type 'B' the second led lights up and so on, and when I type A B C D separately in that order the 5th led lights up and I can't seem to find a way.