For people who have problems after recent win11 update try this.
My Arturia Keylab MK2 didn’t work at all after the latest forced Win11 update. I closed Cubase, reinstalled NVIDIA drivers, reinstalled Arturia Midi driver, powered off and on my keyboard, opened CMD as admin and wrote "net stop midisrv”, then I wrote “net start midisrv”, opened Cubase and now everything works. This Cubase Midi remote script (which is cool!) works fine too, didn’t do any changes for that. I don’t know if only the command or updating the midi driver was enough.