This is the Arduino Sketch Code. The four switches are momentary switches and have a common ground. They are wired to pins 2,3,4, and 5 of the Pro Micro.

/* This code sends the transport control commands for Riffstation to the USB port while pretending to be a keyboard.
* If Riffstation has focus and you close one of the four switches then Riffstation will Start/Stop/Rewind/Fast Forward.
*/

#include <Keyboard.h>

// Pins 2 to 5 of the footswitch connected to the Pro Micro respectively:
int footpadPins[4] = {2, 3, 4, 5};

void setup()
{
for (int i=0; i<4; i++)
{
pinMode(footpadPins[i], INPUT_PULLUP); // Set all foot pad pins as inputs and invoke pull up resistors

}
}



void loop() {
//pin 2 Keypad Right Arrow (step Backwards)
if (digitalRead(footpadPins[0]) == LOW){
Keyboard.write(0xD8);
delay(250);
}

//pin 3 Space (Return to Start)
if (digitalRead(footpadPins[1]) == LOW){
Keyboard.print(" ");
delay(500);
}

//pin 4 Enter (Pause/Start)
if (digitalRead(footpadPins[2]) == LOW){
Keyboard.print("\n");
delay(500);
}

//pin 5 Keypad Right Arrow (Step Forward)
if (digitalRead(footpadPins[3]) == LOW){
Keyboard.write(0xD7);
delay(250);
}
}

Enjoy