Table of Contents

Enum KeyCode

Namespace
SharpHook.Data
Assembly
SharpHook.dll

Represents a virtual key code.

public enum KeyCode : ushort

Fields

Vc0 = 48

0

Available on: Windows, macOS, Linux

Vc1 = 49

1

Available on: Windows, macOS, Linux

Vc102 = 153

The <> key on the US standard keyboard, or the | key on the non-US 102-key keyboard, or the Section key (§) on the macOS ISO keyboard

Available on: Windows, macOS, Linux

Vc2 = 50

2

Available on: Windows, macOS, Linux

Vc3 = 51

3

Available on: Windows, macOS, Linux

Vc4 = 52

4

Available on: Windows, macOS, Linux

Vc5 = 53

5

Available on: Windows, macOS, Linux

Vc6 = 54

6

Available on: Windows, macOS, Linux

Vc7 = 55

7

Available on: Windows, macOS, Linux

Vc8 = 56

8

Available on: Windows, macOS, Linux

Vc9 = 57

9

Available on: Windows, macOS, Linux

VcA = 65

A

Available on: Windows, macOS, Linux

VcAccept = 30

IME Accept

Available on: Windows

VcAlphanumeric = 240

IME Alphanumeric mode (eisū)

Available on: macOS

VcApp1 = 57382

Launch app 1

Available on: Windows, Linux

VcApp2 = 57383

Launch app 2

Available on: Windows, Linux

VcApp3 = 57384

Launch app 3

Available on: Linux

VcApp4 = 57385

Launch app 4

Available on: Linux

VcAppBrowser = 57381

Launch browser

Available on: Linux

VcAppCalculator = 57377

Launch calculator

Available on: Linux

VcAppMail = 57452

Launch mail

Available on: Windows, Linux

VcB = 66

B

Available on: Windows, macOS, Linux

VcBackQuote = 192

`

Available on: Windows, macOS, Linux

VcBackslash = 93

\

Available on: Windows, macOS, Linux

VcBackspace = 8

Backspace (on Windows and Linux) or Delete (on macOS)

Available on: Windows, macOS, Linux

VcBrowserBack = 57450

Browser Back

Available on: Windows, Linux

VcBrowserFavorites = 57446

Browser Favorites

Available on: Windows, Linux

VcBrowserForward = 57449

Browser Forward

Available on: Windows, Linux

VcBrowserHome = 57394

Browser Home

Available on: Windows, Linux

VcBrowserRefresh = 57447

Browser Refresh

Available on: Windows, Linux

VcBrowserSearch = 57445

Browser Search

Available on: Windows, Linux

VcBrowserStop = 57448

Browser Stop

Available on: Windows

VcC = 67

C

Available on: Windows, macOS, Linux

VcCancel = 211

Cancel

Available on: Windows, Linux

VcCapsLock = 20

Caps Lock

Available on: Windows, macOS, Linux

VcChangeInputSource = 527

Function key when used to change an input source on macOS

Available on: macOS

VcCloseBracket = 92

]

Available on: Windows, macOS, Linux

VcComma = 44

,

Available on: Windows, macOS, Linux

VcContextMenu = 525

Context Menu

Available on: Windows, macOS, Linux

VcConvert = 28

IME Convert (henkan)

Available on: Windows, Linux

VcD = 68

D

Available on: Windows, macOS, Linux

VcDelete = 127

Delete (on Windows and Linux) or Forward Delete (on macOS)

Available on: Windows, macOS, Linux

VcDown = 40

Down Arrow

Available on: Windows, macOS, Linux

VcE = 69

E

Available on: Windows, macOS, Linux

VcEnd = 35

End

Available on: Windows, macOS, Linux

VcEnter = 10

Enter

Available on: Windows, macOS, Linux

VcEquals = 61

=

Available on: Windows, macOS, Linux

VcEscape = 27

Escape

Available on: Windows, macOS, Linux

VcF = 70

F

Available on: Windows, macOS, Linux

VcF1 = 112

F1

Available on: Windows, macOS, Linux

VcF10 = 121

F10

Available on: Windows, macOS, Linux

VcF11 = 122

F11

Available on: Windows, macOS, Linux

VcF12 = 123

F12

Available on: Windows, macOS, Linux

VcF13 = 61440

F13

Available on: Windows, macOS, Linux

VcF14 = 61441

F14

Available on: Windows, macOS, Linux

VcF15 = 61442

F15

Available on: Windows, macOS, Linux

VcF16 = 61443

F16

Available on: Windows, macOS, Linux

VcF17 = 61444

F17

Available on: Windows, macOS, Linux

VcF18 = 61445

F18

Available on: Windows, macOS, Linux

VcF19 = 61446

F19

Available on: Windows, macOS, Linux

VcF2 = 113

F2

Available on: Windows, macOS, Linux

VcF20 = 61447

F20

Available on: Windows, macOS, Linux

VcF21 = 61448

F21

Available on: Windows, Linux

VcF22 = 61449

F22

Available on: Windows, Linux

VcF23 = 61450

F23

Available on: Windows, Linux

VcF24 = 61451

F24

Available on: Windows, Linux

VcF3 = 114

F3

Available on: Windows, macOS, Linux

VcF4 = 115

F4

Available on: Windows, macOS, Linux

VcF5 = 116

F5

Available on: Windows, macOS, Linux

VcF6 = 117

F6

Available on: Windows, macOS, Linux

VcF7 = 118

F7

Available on: Windows, macOS, Linux

VcF8 = 119

F8

Available on: Windows, macOS, Linux

VcF9 = 120

F9

Available on: Windows, macOS, Linux

VcFinal = 231

IME Final mode

Available on: Windows

VcFunction = 526

Function

Available on: macOS

VcG = 71

G

Available on: Windows, macOS, Linux

VcH = 72

H

Available on: Windows, macOS, Linux

[Obsolete("VcKana should be used instead")] VcHangul = 233

IME Hangul mode

Available on: Windows, Linux

VcHanja = 230

IME Hanja mode

Available on: Windows, Linux

VcHelp = 159

Help

Available on: Windows, macOS, Linux

VcHiragana = 242

IME Hiragana mode

Available on: Linux

VcHome = 36

Home

Available on: Windows, macOS, Linux

VcI = 73

I

Available on: Windows, macOS, Linux

VcImeOff = 264

IME Off

Available on: Windows

VcImeOn = 265

IME On

Available on: Windows

VcInsert = 155

Insert

Available on: Windows, Linux

VcJ = 74

J

Available on: Windows, macOS, Linux

VcJpComma = 528

JP Comma

Available on: macOS, Linux

VcJunja = 232

IME Junja mode

Available on: Windows

VcK = 75

K

Available on: Windows, macOS, Linux

VcKana = 21

IME Kana mode

Available on: Windows, macOS

[Obsolete("VcHanja should be used instead")] VcKanji = 25

IME Kanji mode

Available on: Windows

VcKatakana = 241

IME Katakana mode

Available on: Linux

VcKatakanaHiragana = 262

IME Katakana/Hiragana toggle

Available on: Linux

VcL = 76

L

Available on: Windows, macOS, Linux

VcLeft = 37

Left Arrow

Available on: Windows, macOS, Linux

VcLeftAlt = 40978

Left Alt (on Windows and Linux) or Option (on macOS)

Available on: Windows, macOS, Linux

VcLeftControl = 40977

Left Control

Available on: Windows, macOS, Linux

VcLeftMeta = 41117

Left Win (on Windows), Command (on macOS), or Super/Meta (on Linux)

Available on: Windows, macOS, Linux

VcLeftShift = 40976

Left Shift

Available on: Windows, macOS, Linux

VcM = 77

M

Available on: Windows, macOS, Linux

VcMediaEject = 57388

Eject Media

Available on: macOS, Linux

VcMediaNext = 57369

Next Media

Available on: Windows, macOS, Linux

VcMediaPlay = 57378

Play/Pause Media

Available on: Windows, macOS, Linux

VcMediaPrevious = 57360

Previous Media

Available on: Windows, macOS, Linux

VcMediaSelect = 57453

Select Media

Available on: Windows

VcMediaStop = 57380

Stop Media

Available on: Windows, Linux

VcMinus = 45

Available on: Windows, macOS, Linux

VcMisc = 3585

Miscellaneous OEM-specific key

Available on: Windows

VcModeChange = 263

IME Mode Change

Available on: Windows, Linux

VcN = 78

N

Available on: Windows, macOS, Linux

VcNonConvert = 29

IME Non-Convert (muhenkan)

Available on: Windows, Linux

VcNumLock = 144

Num Lock

Available on: Windows, Linux

VcNumPad0 = 96

Num-Pad 0

Available on: Windows, macOS, Linux

VcNumPad1 = 97

Num-Pad 1

Available on: Windows, macOS, Linux

VcNumPad2 = 98

Num-Pad 2

Available on: Windows, macOS, Linux

VcNumPad3 = 99

Num-Pad 3

Available on: Windows, macOS, Linux

VcNumPad4 = 100

Num-Pad 4

Available on: Windows, macOS, Linux

VcNumPad5 = 101

Num-Pad 5

Available on: Windows, macOS, Linux

VcNumPad6 = 102

Num-Pad 6

Available on: Windows, macOS, Linux

VcNumPad7 = 103

Num-Pad 7

Available on: Windows, macOS, Linux

VcNumPad8 = 104

Num-Pad 8

Available on: Windows, macOS, Linux

VcNumPad9 = 105

Num-Pad 9

Available on: Windows, macOS, Linux

VcNumPadAdd = 107

Num-Pad +

Available on: Windows, macOS, Linux

VcNumPadClear = 12

Num-Pad Clear

Available on: Windows, macOS

VcNumPadDecimal = 110

Num-Pad Decimal

Available on: Windows, macOS, Linux

VcNumPadDivide = 111

Num-Pad /

Available on: Windows, macOS, Linux

VcNumPadEnter = 125

Num-Pad Enter

Available on: Windows, macOS, Linux

VcNumPadEquals = 124

Num-Pad =

Available on: Windows, macOS, Linux

VcNumPadMultiply = 106

Num-Pad *

Available on: Windows, macOS, Linux

VcNumPadSeparator = 108

Num-Pad Separator

Available on: Windows, Linux

VcNumPadSubtract = 109

Num-Pad -

Available on: Windows, macOS, Linux

VcO = 79

O

Available on: Windows, macOS, Linux

VcOpenBracket = 91

[

Available on: Windows, macOS, Linux

VcP = 80

P

Available on: Windows, macOS, Linux

VcPageDown = 34

Page Down

Available on: Windows, macOS, Linux

VcPageUp = 33

Page Up

Available on: Windows, macOS, Linux

VcPause = 19

Pause

Available on: Windows, Linux

VcPeriod = 46

.

Available on: Windows, macOS, Linux

VcPower = 57438

Power

Available on: macOS, Linux

VcPrintScreen = 154

Print Screen

Available on: Windows, Linux

VcProcess = 261

IME Process

Available on: Windows

VcQ = 81

Q

Available on: Windows, macOS, Linux

VcQuote = 222

'

Available on: Windows, macOS, Linux

VcR = 82

R

Available on: Windows, macOS, Linux

VcRight = 39

Right Arrow

Available on: Windows, macOS, Linux

VcRightAlt = 45074

Right Alt (on Windows and Linux) or Option (on macOS)

Available on: Windows, macOS, Linux

VcRightControl = 45073

Right Control

Available on: Windows, macOS, Linux

VcRightMeta = 45213

Right Win (on Windows), Command (on macOS), or Super/Meta (on Linux)

Available on: Windows, macOS, Linux

VcRightShift = 45072

Right Shift

Available on: Windows, macOS, Linux

VcS = 83

S

Available on: Windows, macOS, Linux

VcScrollLock = 145

Scroll Lock

Available on: Windows, Linux

VcSemicolon = 59

;

Available on: Windows, macOS, Linux

VcSlash = 47

/

Available on: Windows, macOS, Linux

VcSleep = 57439

Sleep

Available on: Windows, Linux

VcSpace = 32

Space

Available on: Windows, macOS, Linux

VcT = 84

T

Available on: Windows, macOS, Linux

VcTab = 9

Tab

Available on: Windows, macOS, Linux

VcU = 85

U

Available on: Windows, macOS, Linux

VcUndefined = 0

Undefined key

VcUnderscore = 523

_

Available on: macOS, Linux

VcUp = 38

Up Arrow

Available on: Windows, macOS, Linux

VcV = 86

V

Available on: Windows, macOS, Linux

VcVolumeDown = 57392

Volume Down

Available on: Windows, macOS, Linux

VcVolumeMute = 57376

Volume Mute

Available on: Windows, macOS, Linux

VcVolumeUp = 57390

Volume Up

Available on: Windows, macOS, Linux

VcW = 87

W

Available on: Windows, macOS, Linux

VcX = 88

X

Available on: Windows, macOS, Linux

VcY = 89

Y

Available on: Windows, macOS, Linux

VcYen = 524

Yen

Available on: macOS, Linux

VcZ = 90

Z

Available on: Windows, macOS, Linux

See Also