The software that can do that is AHK Autohotkey. AHK can monitor / listen to keyboard-presses and take action to start / stop a script that emulates keypresses.
You can't expect to get support for AHK in the arduino forum. But AHK is a widely used software with its own user-forum where people sometimes even write scripts for others