GarageBand sound holding/freezing when multiple notes are played on USB keyboard

Buy a new midi cord.

I'm not sure why the first one didn't work, but I eventually bought a new midi cord/cable(s) and now the above problem doesn't happen.