Me.KeyPreviw = True
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown Dim K = e.KeyCode If K = Keys.A MessageBox.Show("A") '※省略して書いています。 End If End Sub