Check the pedal for a polarity switch, if it has one. If it does then flip the switch.
If it doesn't then I am not sure what to suggest given such little information. What keyboard manufacturer, which pedal? Does it only happen when using studio one? Which version of studio one?