This is a very old problem, full of answers online. Try this Stack Overflow answer (
c# - Keydown Event not firing - Stack Overflow[
^]). You have to register the
KeyDown
event with the form itself & set its
KeyPreview
property to true. If you google it, you'll find dozens of solutions.
Key preview is a Microsoft answer to this Windows form event propagation problem back in the 90's, if you are curious about the history of Windows programming from its very beginning. It was first seen in 1991, I believe, very well-advertised in Turbo C++ 3.0 (a Borland product), MFC & VB 2 & 3. You still can find them with Google. Anyways. History is boring. I just want to let you know that history is the answer to every convoluted sick design.