I have a windows form that has bunch of controls. Whenever any key is clicked, like arrow keys, I want to raise an event. The problem isn't in code, the problem is that the controls have a tab index so anytime I click on arrow keys the cursor just moves to another control and that's what I don't want.
You have to be sure that there isn't any active control on the current form. Put this code in Form.cs
this.ActiveControl = null;