Option Explicit Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Debug.Print KeyCode, Shift Select Case Shift Case ShiftConstants.vbCtrlMask 'ShiftConstants Select Case KeyCode Case vbKeyEnd Unload Me End Select End Select End Sub