In visual studio, I'm using hotkeys they work but if I click off the application they don't work and I need them to
This is my code I'm using
private void Form1_KeyDown(object sender, KeyEventArgs e) {
if(e.KeyCode == Keys.B) {
button1.PerformClick();
}
}
thats all ived tried and i can think of