The pedals help the musician sustain the notes when pressed, allowing the strings to vibrate freely till it ceases naturally or released. This enhances the tone of the piano. Sustain pedals are also used in electronic keyboards to provide the realistic sound of a piano.