It may be difficult. In the design of the BCD signal generator circuit by pressing a key. Here is how you make a keyboard encoder circuit for 16 keypads.