Bome's Midi Translator Pro
Bome's Midi Translator Pro is the popular MIDI and keystroke mapping tool: use it for controlling arbitrary software by way of MIDI and keystrokes. Its rich feature set allows it to be used for general Windows automation, too.
It works by specifying mappings for different input and output types. Below is a list of different trigger types (Incoming) and action types (Outgoing). You can combine them as you wish, e.g. do keystroke-to-MIDI conversion, or MIDI-to-mouse mapping. 
See some screenshots. 
Incoming Actions 
MIDI messages 
keystrokes *) 
timer *) 
enable/disable the current preset 
opening a project file 
Processing ("Rules")
A sequence of rules can be defined to be processed if the incoming action matches: 
assignments of variables, e.g. pp=20 *) 
simple expressions, e.g. pp=og+128 *) 
labels and goto, e.g. goto "2nd Options" *) 
conditional execution, e.g. IF pp<20 THEN do not execute Outgoing Action *) 
Outgoing Actions 
MIDI messages 
keystrokes 
mouse movements *) 
window messages *) 
create/start/stop timer *) 
change active preset 
enable/disable the current preset 
execute program (new in version 1.7.0) *) 
*) Feature only available in Pro edition. 
New in version 1.7.0 (Windows)
These are the major new features in version 1.7.0: 
enhanced MIDI support:
- use multiple MIDI ports
- virtual MIDI ports included
- can define MIDI port aliases to abstract MIDI port names
- MIDI router for direct MIDI THRU connections (in Project Properties)
enhanced keystroke emulation: should work with games, too (DirectX fix) 
added more global variables: all 2-letter combinations starting with i, j, k, ...n (e.g. i0, ja, k7, etc.) 
edit Rules directly in text field 
new outgoing action: execute program 
http://www.bome.com/midi/translator/
_____________________________________________________________________________
Brotha' Man Neutron, 
Could you read this a little and see if it might work.
I appreciate it if you have time. I don't understand what they're saying, but because I can add a foot pedal it sounds like I could use it somehow.
I'll try and read it again but I can't picture in my head how it will work.
Ankyuvarymush....