private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.A) { MessageBox.Show("A pressed."); } if (e.KeyCode == Keys.S) { MessageBox.Show("S pressed."); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)