title: How do you detect simultaneous keypresses such as "Ctrl + T" in VB.NET?
body: <p>I am trying to detect the keys "Control" and "t" being pressed simultaneously in VB.NET. The code I have so far is as follows:</p>
  
  <pre><code>Private Sub frmTimingP2P_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
      If e.KeyValue = Keys.ControlKey And e.KeyValue = Keys.T Then
          MessageBox.Show("Ctrl + T")
      End If
  End Sub
  </code></pre>
  
  <p>I can detect one key or the other by removing the and statement and the second keyvalue statement, but I don't really get anything when I try this. Is there another method?</p>
  
  <p>Thanks</p>