I have an X keys foot switch I've had for years. The X keys run around $150 but I'll say this, it is built like a tank, I've been using it live since 2004.
You can map the 3 switches to any keystroke or unlimited combinations of keystrokes. Hell It will record a whole paragraph! Simple, works with any software. I control Win Amp so I can keep my hands on my guitar. And I have also used it with Sonar W_ R_ SPACE and even Photoshop CTRL + -
I split a drink on it New Years eve and one switch stopped working. I Email customer support and within a day he asked for my address and is shipping me some spare parts! Free. Talk about customer service! It comes with 2 simple apps, One for recording Macros, And one for saving and loading the configuration.
http://www.xkeys.com/XkeysFootPedals/index.php
There is also some cheepo brands worth mentioning, But I'm doubtful for this price if the software will be OK , Kinda like a USB mike , right.. , I'm ordering this one just to see what it's like. It might not be good enough for live work, but might be fine for controlling Sonar. Just Google USB FOOT CONTROL, you'll see a bunch of them including the X keys. Philips makes one worth looking into as well for $90, but there's no mention of software.