title: C#: How do you display the modifier key name + non-modifier key name in this keydown event?
body: <p>I am using this code to detect whether modifier keys are being held down in the KeyDown event of a text box.</p>
  
  <pre><code>    private void txtShortcut_KeyDown(object sender, KeyEventArgs e)
      {
          if (e.Shift || e.Control || e.Alt)
          {
              txtShortcut.Text = (e.Shift.ToString() + e.Control.ToString() + e.Alt.ToString() + e.KeyCode.ToString());
  
          }
      }
  </code></pre>
  
  <p>How would I display the actual modifier key name and not the bool result and also display the non-modifier key being pressed at the end of the modifier key if a non-modifier key like the letter A is being pressed at the same time too? Is there a way to do it all in the same txtShortcut.Text = (); line? </p>