# How to make sustain pedal perform a keystroke?

**URL:** <https://forum.bome.com/t/how-to-make-sustain-pedal-perform-a-keystroke/3239>\
**Category:** Bome Products\
**Created:** [June 22, 2021, 2:49am UTC](https://forum.bome.com/t/how-to-make-sustain-pedal-perform-a-keystroke/3239 "2021-06-22T02:49:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![averageuser](https://forum.bome.com/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@averageuser](https://forum.bome.com/u/averageuser)\
**Post date:** [June 22, 2021, 2:49am UTC](https://forum.bome.com/t/how-to-make-sustain-pedal-perform-a-keystroke/3239/1 "2021-06-22T02:49:07Z")

</div>

Hi there, I have a williams allegro 3 with a connected sustain pedal and was wondering on how to make the pedal perform a keystroke on my PC. (key being spacebar). I also want it to hold the key when I’m holding the pedal down. What would be the input for the sustain pedal?

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [June 22, 2021, 3:16am UTC](https://forum.bome.com/t/how-to-make-sustain-pedal-perform-a-keystroke/3239/2 "2021-06-22T03:16:11Z")

</div>

Hi and welcome to the Bome Community!

A sustain pedal down is usually CC64 with value of 127.  
Up is CC 64 with a value of 0.

The attached should do the job.

[Sustain-to-Keystroke.bmtp](https://forum.bome.com/uploads/short-url/97FALu3IxagGcf2QEWYFuNB3bXS.bmtp) (1.1 KB)

You will likely need to define you incoming MIDI controller in the project file.

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![averageuser](https://forum.bome.com/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@averageuser](https://forum.bome.com/u/averageuser)\
**Post date:** [June 22, 2021, 3:23am UTC](https://forum.bome.com/t/how-to-make-sustain-pedal-perform-a-keystroke/3239/3 "2021-06-22T03:23:57Z")

</div>

thank you!!! you’re amazing!

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [June 22, 2021, 4:42am UTC](https://forum.bome.com/t/how-to-make-sustain-pedal-perform-a-keystroke/3239/4 "2021-06-22T04:42:52Z")

</div>

My pleasure!

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_
