hi
Is it possible to implementing hotkey function in exe itself by asm code injection ,so pressing on the key does some code injection in memory. i have only some idea like get the main loop->create some asm function to detect specific keys->if key pressed do some editing in memory

Is there any api to look for?
regards