I am creating a small game, the game is printed onto a panel on a windows form. Now i want to capture the keydown event to see if its the arrow keys that has been pressed, t
public partial class Form1 : Form { public Form1() { InitializeComponent(); KeyPreview = true; KeyDown += new KeyEventHandler(Form1_KeyDown); } void Form1_KeyDown(object sender, KeyEventArgs e) { System.Diagnostics.Debug.Write(e.KeyCode); } }