The red box is programmed to switch banks down and toggle input modes. it is not as complicated as it sounds. :) The TF has inputs for "AUX switch" which can use up to a three button switch with TRS cable, expression, and MIDI.
PS, I am glad to help in any way I can. Like you, the main goal...