Home Alarm with a 3 wire 4x3 analog keypad nearly done but need some help please

HazardsMind:

Yeah right, so what's the problem?

Well any number you put in for the 5th digit, will be changed to zero, thats not a problem?
You enter 12345, the code after that part sees 123450. I can't test it myself, but thats what I see from this.

Again I can't test it, but if it works then it works.

No. Reread the code. More importantly, get the C from ground up by the author I recommended you.