Just keep turning on and off , and plug in and out the pedal....it will work, my piano student has the same issue like you with casio CDP-S100...everytime your sustain stuck, just keep on turning on and off and plug in and out the pedal...im sure it will go back and not stuck the sustain