I was wondering if there are sample code out there that can give me something to look at as reference ... for something like this.. For example if one button is pressed in the switch matrix... and then later pressing another button while keeping the first one pressed.

Key #1 is pressed .. and then later .. key#4 is pressed while key#1 is pressed.

can someone help me out. I was thinking of putting them in an array and then constantly checking the array to see if it changes.. but that might be a dead end.

Any help on this would be greatly appreciated.