The footswitch found HERE is what some folks on the forum use to do what you want. The switch plugs into a USB port and comes with simple software to allow programming. If you are trying to control BIAB with a switch plugged into your musical instrument, I don't think it can be done.

R