As @DanielMitchell mentioned, you can use monitoring activities to monitor the key you press and trigger a particular task to run depending on the key you press. However, i would like to ask what’s the frequency of clicking on this button? Let’s say you press F2 now and after about 5 hours you get the requirement to press F3 for some other task. if that’s the case, I would not really recommend to have monitoring jobs as it is utilizing resources unnecessarily for hours doing nothing. In such cases, you can have the processes created and keep them ready so that you can execute them only when you want.
This can be done easily if you have a Orchestrator with you. Or else, you can prepare some batch files where you can use them to run particular workflows whenever you need.