Toggling tracks using MIDI?

Hello everyone,

is it possible to solo tracks using a MIDI footswitch? I want to use my ENGL Z-9 to toggle between my clean and my rhythm tracks to use Cubase for practice sessions. I’m pretty sure I’ve seen people do similiar things for live shows but I think those involved automation. Basically I want to be able to press one button on the footswitch and it solos my clean track while pressing another one those the same with the rhythm tracks (and my lead tone too but I’m happy if those two work)
I understand if it’s not possible since it doesn’t seem like something a DAW needs. I was just wondering if that works as it would really help me. Thank you in advance to whoever is gonna reply.