Using a Keypad along with an LCD Display often eats up the I/O pins on the micro-controller. The solution reduce the number of pins needed to interface both is, multiplex the data bus.