I have a winforms application that has one form. That form responds to F keys such as F1, F2, F3, etc. If that application is in focus, I can press F1 and the application will execute the command I have tied to F1.
If a user clicks away from my application and presses F1, then my application is not able to respond to the F1 key.
How can I force my application to keep focus. I tried setting topmost to true, but that makes my form stay on top, but you can still click on another application the the focus will leave my app.