I made this as a proof of concept using AA.
Drawback is that you need to attach another CE to the target CE

The good news is that once you have written the desired hotkey state setting, you can deactivate and close; no need to have it running.
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1