You can use the following constants to represent keyboard values. These constants can be used In Microsoft Access in event procedures for the KeyDown and KeyUp events.
vbKey0 | vbKeyF5 | vbKeyNumpad4 |
vbKey1 | vbKeyF6 | vbKeyNumpad5 |
vbKey2 | vbKeyF7 | vbKeyNumpad6 |
vbKey3 | vbKeyF8 | vbKeyNumpad7 |
vbKey4 | vbKeyF9 | vbKeyNumpad8 |
vbKey5 | vbKeyF10 | vbKeyNumpad9 |
vbKey6 | vbKeyF11 | vbKeyO |
vbKey7 | vbKeyF12 | vbKeyP |
vbKey8 | vbKeyF13 | vbKeyPageDown |
vbKey9 | vbKeyF14 | vbKeyPageUp |
vbKeyA | vbKeyF15 | vbKeyPause |
vbKeyAdd | vbKeyF16 | vbKeyPrint |
vbKeyB | vbKeyG | vbKeyQ |
vbKeyBack | vbKeyH | vbKeyR |
vbKeyC | vbKeyHelp | vbKeyRButton |
vbKeyCancel | vbKeyHome | vbKeyReturn |
vbKeyCapital | vbKeyI | vbKeyRight |
vbKeyClear | vbKeyInsert | vbKeyS |
vbKeyControl | vbKeyJ | vbKeySelect |
vbKeyD | vbKeyK | vbKeySeparator |
vbKeyDecimal | vbKeyL | vbKeyShift |
vbKeyDelete | vbKeyLButton | vbKeySnapshot |
vbKeyDivide | vbKeyLeft | vbKeySpace |
vbKeyDown | vbKeyM | vbKeySubtract |
vbKeyE | vbKeyMButton | vbKeyT |
vbKeyEnd | vbKeyMenu | vbKeyTab |
vbKeyEscape | vbKeyMultiply | vbKeyU |
vbKeyExecute | vbKeyN | vbKeyUp |
vbKeyF | vbKeyNumlock | vbKeyV |
vbKeyF1 | vbKeyNumpad0 | vbKeyW |
vbKeyF2 | vbKeyNumpad1 | vbKeyX |
vbKeyF3 | vbKeyNumpad2 | vbKeyY |
vbKeyF4 | vbKeyNumpad3 | vbKeyZ |