Issue with matrix keypad vs pull up buttons (in the code)

Part of the code.

Post the complete sketch, or a smaller sketch that illustrates whatever it is the problem you are having.

a7