Script to associate noteboock keys to GP functions

Hi, I need a script that allows me to associate notebook keys to GP functions such as advancing between Rack, within the variations of a Rack or advancing between songs.
Specifically associate the space bar to advance Rack progression

With Bome MIDI Translator and little scripting in GP and a virtual Midi Port you can achieve this

Thanks Pianopaul, I’ll check it out. If I have doubts I consult you