Key Pressed Custom Action/Event?

I want to setup a bit of a sequence of actions.
I want to attach an action event to a key pressed on the keyboard. Which after pressing the key, a window showing a form appears.
In my case, this is for debugging QA purposes.
Here are the two examples;
1. I want to press F11 and bring up a popup window that has various debug tools on it. This is for developer use.
This is referred to as a 'debug menu'.
https://en.wikipedia.org/wiki/Debug_menu
2. Pressing F12 will bring up a Report form in a window. This is for users to report bugs that happen to them.
Again, this would be great for QA.
Any way I can do this?
I want to attach an action event to a key pressed on the keyboard. Which after pressing the key, a window showing a form appears.
In my case, this is for debugging QA purposes.
Here are the two examples;
1. I want to press F11 and bring up a popup window that has various debug tools on it. This is for developer use.
This is referred to as a 'debug menu'.
https://en.wikipedia.org/wiki/Debug_menu
2. Pressing F12 will bring up a Report form in a window. This is for users to report bugs that happen to them.
Again, this would be great for QA.
Any way I can do this?