Is there a clamp diode on the 245 pin?
BB0~BB7 of A1~A8 are key signals, and FPGA_BB0~FPGA_BB7 of B1~B8 are FPGA input signals. 245 will be damaged when the button is pressed live. In series with a 100Ω resistor between BB0~BB7 and A1~A7, 245 will still be damaged.