hi i have a 12 button keypad (numbers 0-9, a # key and * key). i want to be able to input a code for example 001 and then press the # key as an enter button and this will turn on output 1. i understand how to recognise each key to turn on a bit of memory. but i'm stuck on how to do a code sequence. anyone any ides thanks