[Solved] Keypad matrix with more than 4 columns issue

You appear to have the keypad diodes wired incorrectly. You have the diodes in series, feeding into the column pin, while they should connect from each individual button to the column pin.