Yes you can change sustain pedal polarity through Xkey Plus.
Open ‘Keys Assign’ panel in Xkey plus, click “sustain pedal” to select it.
Change the initial value setting from Min->Max or Max->Min.
Click “Save modified to Xkey”.
That should do the job.