EMF from L298N triggering button?

jremington:
Motors need to be powered separately from the Arduino. They create heavy electrical noise and can cause the Arduino to reset or malfunction.

The L298N is powered by a separate 5v PSU, the arduino is powered by USB. The only common wires they have are the 6 data cables signalling the L298N, and a common ground cable, which I ruled out as the cause of the issue in the OP.