Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyUp Then Me.Caption = "you clicked the “↑”"
If KeyCode = vbKeyDown Then Me.Caption = "you clicked the “↓”"
If KeyCode = vbKeyLeft Then Me.Caption = "you clicked the “←”"
If KeyCode = vbKeyRight Then Me.Caption = "you clicked the “→”"
End Sub
Private Sub Form_Load()
Me.KeyPreview = True
End Sub