title: How to link a key, e.g "A", to a button?
body: <p>I am creating a game in VB and I have 4 images and 4 buttons down each image, of course right now I can click the button with the mouse to pick an option but I want to type the letter &quot;A&quot;, &quot;S&quot;, &quot;D&quot;,&quot;F&quot; of the keyboard to activate each button.</p>
  <p>How can you do this in VB?</p>
  <p>My current code for the button is the following</p>
  <pre><code>Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
      My.Computer.Audio.Stop()
      My.Computer.Audio.Play (&quot;D:\VisualStudio\DIFgame\sounds\correctSound.wav&quot;) 'correct sound audio
      Cara.Visible = True 'show face
  End Sub
  </code></pre>