Since you seem to understand multiplexing keys on a keypad, it looks like you are on your way. Good Luck.