https://aticleworld.com/interfacing-of-keypad-with-8051-microcontroller/
Interfacing of keypad with 8051 microcontroller.