public void KeyDown(System.Object Sender, System.Windows.Forms.KeyEventArgs e) { switch (e.KeyCode) { case Keys.Q: Label1.BackColor = Color.Green; dteStart = DateAndTime.Now(); break; case Keys.W: Label2.BackColor = Color.Green; break; case Keys.E: Label3.BackColor = Color.Green; break; case Keys.R: Label4.BackColor = Color.Green; dteFinish = DateAndTime.Now(); span = dteFinish.Subtract(dteStart); Label5.Text = span.ToString(); break; } }