i am doing a project and having some trouble programming the 8051 for a keycode. i am using 4 push buttons and want to use the ports on the microcontroller for the keycode. i want to be able to set the keycode and then use the buttons to access the code and then display it to an lcd but if the code isnt right i want it to print wrong code to the lcd. i am using the keil software but programming it in c. i have the lcd working and able to print stuff to it but lost now that i am trying to get the key code working. Any suggestions?