title: C# Detect detect key down after button click
body: <p>I would like to perform some action after particular key is pressed after button click. Sth like this: I click button then press End key and then some action is performed.</p>
  
  <p>I tried with this simple code but it doesn't work.</p>
  
  <pre><code>private void buttonStart_Click(object sender, EventArgs e)
      {
          KeyDown += OnKeyDown;         
      }
  
      private void OnKeyDown(object sender, KeyEventArgs keyEventArgs)
      {
          if (keyEventArgs.KeyCode == Keys.Return)
              label2.Text = "siala";
      }
  }
  </code></pre>