How can I get my program to react in a certain way depending on what key the user presses?
For example, while the program is running, if the user presses F12, then it must show, for example, form2.

How would I go about doing this?