continued.............

The sustain pedal on the digital piano is much bigger and operates more like a pedal on a real piano because when playing the 88 keys of a good digital piano with weighted keys, you need the control afforded by the bigger leverage.
Here is an example of what a piece of music would look like that calls for sustain. You can see the "Ped." begin the call for the pedal on the F chord. The notation of the chord involves a curved line called a "tie". The tie goes to a half note that is not played but merely "sustained" by the continued sound of the original F chord. When the rest appears, an asterisk tells you to release the sustain pedal so that the sound stops. There are many other variations on a sustain situation but my intention here is to simply get you started.
Listen to Dorothy explain and demonstrate the sustain pedal on a portable keyboard: