How do I use piano pedals in Garageband?
The ⇥ Tab key functions as the sustain pedal in the on-screen keyboard, if you switch to the Musical Typing mode:



If you must use the Keyboard mode, you can insert pedaling after the fact in the Score editor: