title: How can i capture Key press events?
body: <p>I'm trying to have 2 different message box display when "<kbd>Ctrl</kbd>+<kbd>l</kbd>" is pressed and another when "<kbd>Shift</kbd>+<kbd>A</kbd>" is pressed as well. I have everything done but when i press these button while the program is running, nothing happens. I'm not sure what i have done wrong.</p>
  
  <p>My code as follows:</p>
  
  <pre><code>public Color()
      {
          InitializeComponent();
  
         ContextMenuStrip s = new ContextMenuStrip();
         ToolStripMenuItem directions = new ToolStripMenuItem();
         directions.Text = "Directions";
         directions.Click += directions_Click;
         s.Items.Add(directions);
         this.ContextMenuStrip = s;
         this.KeyDown += new KeyEventHandler(Color_KeyDown);//Added
      }
      void directions_Click(object sender, EventArgs e)
      {
          MessageBox.Show("Just click on a color chip to see the translation");
      }
      //Keypress
      private void Color_KeyDown(object sender, KeyEventArgs e)
      {
          if (e.KeyCode == Keys.L &amp;&amp; (e.Control))
          {
              MessageBox.Show("You can choose from four different languages by clicking on the radio buttons");
          }
          else if (e.KeyCode == Keys.A &amp;&amp; (e.Shift))
          {
              MessageBox.Show("This is version 1.0");
          }
      }
  </code></pre>