Consider the bottom left of your keyboard schematic
I think you have the D0/D1 wires for the keyboard crossed. The Shift group should be connected to D0, you have it connected to D1 on your 74LS365 driver IC10; and Z is connected to D0, should be D1.
This project is amazing!