This little gem of a project is 7 years old now, but it's too cool not to share:
When the pedal is pressed down, the pedal types "i" causing VIM to go into Insert Mode. When released, it types
and you are back in Normal Mode.
Hacker to the heart? 💯