No HAT?

The diode matrix is used to avoid "ghost" button press when you press three or more buttons simultaneous,
what probable you will not do.

Try using one pin from Row and one pin from Column.

Sokol1