Ironically it is mis-named as a sustain pedal is normally the right pedal on a piano, sustaining the sound, and the damper pedal is the far left pedal on a piano, dampening the sound.
I've never understood why modern keyboards label the sustain pedal as a damper!