The middle pedal acts like reverse and not like a break.
In some games when the brake is fully depressed, the car goes in reverse.
Sounds like the pedal is inverted.
You said "middle pedal", so I assume that means you also have a clutch pedal.
Try to keep the clutch pedal exactly halfway depressed when mapping the other controls.
Turning the sensitivity way down or off should help.