Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
Dim skc: skc = Chr(KeyCode)
Select Case Shift
Case 0 'no modifier keys
txtKey.Text = "You pressed " & skc
Case 1 'Shift is down
Select Case skc
Case "S"
txtKey.Text = "You pressed Shift-S"
End Select
Case 2 'CTRL is down
txtKey.Text = "You pressed ALT-" & skc
Case 3 'CTRL-SHIFT is down
txtKey.Text = "You pressed CTRL-SHIFT-" & skc
Case 4 'ALT is down
txtKey.Text = "You pressed ALT-" & skc
Case 5 'SHIFT-ALT is down
txtKey.Text = "You pressed SHIFT-ALT-" & skc
Case 6 'CTRL-ALT is down
txtKey.Text = "You pressed CTRL-ALT-" & skc
Case 7 'CTRL-ALT-SHIFT is down
txtKey.Text = "You pressed CTRL-ALT-SHIFT-" & skc
Case Else
txtKey.Text = "huh? SHIFT=" & Shift & " KEYCODE=" & KeyCode
End Select
End Sub