This is very easy to explain: two scenarios:
- when you don’t fully insert the plug of a “closing” pedal, the tip of the plug may accidentally create an electrical bridge between the tip and the ring contact of the socket. So the keyboard will recognize the pedal as “breaking” (because the circuit was closed on boot-up). Once you push the plug in fully, the connection breaks (closing pedal is open at rest), which the keyboard thinks is “pressed”
- or if the plug of a “breaking” pedal stays further out of the socket, the tip will not reach the “tip” contact, so the connection will stay open during boot-up - “closing” pedal recognized. Once you push the plug fully in, the connection will be closed - keyboard thinks that pedal is pressed.
So yes, incorrectly plugging in the pedal (and correcting after) can also confuse your keyboard - only remedy is to reboot.