Enum PhysicalKey
Represents a keyboard physical key.
public enum PhysicalKey
- Extension Methods
Fields
A = 20
a
on a US keyboard.q
on an AZERTY (e.g., French) keyboard.Again = 156
Again
. Legacy. Found on Sun’s USB keyboard.AltLeft = 51
Alt
,Option
or⌥
.AltRight = 52
Alt
,Option
or⌥
. This is labelledAltGr
key on many keyboard layouts.ArrowDown = 80
↓
.ArrowLeft = 81
←
.ArrowRight = 82
→
.ArrowUp = 83
↑
.AudioVolumeDown = 152
Volume Down
.AudioVolumeMute = 153
Mute
.AudioVolumeUp = 154
Volume Up
.B = 21
b
on a US keyboard.Backquote = 1
`~
on a US keyboard. This is the半角/全角/漢字
(hankaku/zenkaku/kanji) key on Japanese keyboards.Backslash = 2
Used for both the US
|
(on the 101-key layout) and also for the key located between the"
andEnter
keys on row C of the 102-, 104- and 106-key layouts.#~
on a UK (102) keyboard.Backspace = 53
Backspace
or⌫
. LabelledDelete
on Apple keyboards.BracketLeft = 3
[{
on a US keyboard.BracketRight = 4
]}
on a US keyboard.BrowserBack = 134
Browser
Back
. Some laptops place this key to the left of the↑
key.BrowserFavorites = 135
Browser
Favorites
.BrowserForward = 136
Browser
Forward
. Some laptops place this key to the right of the↑
key.BrowserHome = 137
Browser
Home
.BrowserRefresh = 138
Browser
Refresh
.BrowserSearch = 139
Browser
Search
.BrowserStop = 140
Browser
Stop
.C = 22
c
on a US keyboard.CapsLock = 54
CapsLock
or⇪
.Comma = 5
,<
on a US keyboard.ContextMenu = 55
The application context menu key, which is typically found between the right
Meta
key and the rightControl
key.ControlLeft = 56
Control
or⌃
.ControlRight = 57
Control
or⌃
.Convert = 65
Japanese:
変換
(henkan).Copy = 157
Copy
. Legacy. Found on Sun’s USB keyboard.Cut = 158
Cut
. Legacy. Found on Sun’s USB keyboard.D = 23
d
on a US keyboard.Delete = 73
⌦
. The forward delete key. Note that on Apple keyboards, the key labelledDelete
on the main part of the keyboard is Backspace.Digit0 = 6
0)
on a US keyboard.Digit1 = 7
1!
on a US keyboard.Digit2 = 8
2@
on a US keyboard.Digit3 = 9
3#
on a US keyboard.Digit4 = 10
4$
on a US keyboard.Digit5 = 11
5%
on a US keyboard.Digit6 = 12
6^
on a US keyboard.Digit7 = 13
7&
on a US keyboard.Digit8 = 14
8*
on a US keyboard.Digit9 = 15
9(
on a US keyboard.E = 24
e
on a US keyboard.Eject = 141
Eject
or⏏
. This key is placed in the function section on some Apple keyboards.End = 74
End
or↘
.Enter = 58
Enter
or↵
. LabelledReturn
on Apple keyboards.Equal = 16
=+
on a US keyboard.Escape = 106
Esc
or⎋
.F = 25
f
on a US keyboard.F1 = 107
F1
.F10 = 116
F10
.F11 = 117
F11
.F12 = 118
F12
.F13 = 119
F13
.F14 = 120
F14
.F15 = 121
F15
.F16 = 122
F16
.F17 = 123
F17
.F18 = 124
F18
.F19 = 125
F19
.F2 = 108
F2
.F20 = 126
F20
.F21 = 127
F21
.F22 = 128
F22
.F23 = 129
F23
.F24 = 130
F24
.F3 = 109
F3
.F4 = 110
F4
.F5 = 111
F5
.F6 = 112
F6
.F7 = 113
F7
.F8 = 114
F8
.F9 = 115
F9
.Find = 159
Find
. Legacy. Found on Sun’s USB keyboard.G = 26
g
on a US keyboard.H = 27
h
on a US keyboard.Help = 75
Help
. Not present on standard PC keyboards.Home = 76
Home
or↖
.I = 28
i
on a US keyboard.Insert = 77
Insert
orIns
. Not present on Apple keyboards.IntlBackslash = 17
Located between the left
Shift
andZ
keys.|
on a UK keyboard.IntlRo = 18
Located between the
/
and rightShift
keys.\ろ
(ro) on a Japanese keyboard.IntlYen = 19
Located between the
=
andBackspace
keys.¥
(yen) on a Japanese keyboard./
on a Russian keyboard.J = 29
j
on a US keyboard.K = 30
k
on a US keyboard.KanaMode = 66
Japanese:
カタカナ/ひらがな/ローマ字
(katakana/hiragana/romaji).L = 31
l
on a US keyboard.Lang1 = 67
Korean: HangulMode
한/영
(han/yeong). Japanese (Mac keyboard):かな
(kana).Lang2 = 68
Korean: Hanja
한자
(hanja). Japanese (Mac keyboard):英数
(eisu).Lang3 = 69
Japanese (word-processing keyboard): Katakana.
Lang4 = 70
Japanese (word-processing keyboard): Hiragana.
Lang5 = 71
Japanese (word-processing keyboard): Zenkaku/Hankaku.
LaunchApp1 = 142
App 1
. Sometimes labelledMy Computer
on the keyboard.LaunchApp2 = 143
App 2
. Sometimes labelledCalculator
on the keyboard.LaunchMail = 144
Mail
.M = 32
m
on a US keyboard.MediaPlayPause = 145
Media
Play/Pause
or⏵⏸
.MediaSelect = 146
Media
Select
.MediaStop = 147
Media
Stop
or⏹
.MediaTrackNext = 148
Media
Next
or⏭
.MediaTrackPrevious = 149
Media
Previous
or⏮
.MetaLeft = 59
The
⊞
(Windows),⌘
,Command
or other OS symbol key.MetaRight = 60
The
⊞
(Windows),⌘
,Command
or other OS symbol key.Minus = 46
-_
on a US keyboard.N = 33
n
on a US keyboard.NonConvert = 72
Japanese:
無変換
(muhenkan).None = 0
Represents no key.
NumLock = 84
Numeric keypad
Num Lock
. On the Mac, this is used for the numpadClear
key.NumPad0 = 85
Numeric keypad
0 Ins
on a keyboard.0
on a phone or remote control.NumPad1 = 86
Numeric keypad
1 End
on a keyboard.1
or1 QZ
on a phone or remote control.NumPad2 = 87
Numeric keypad
2 ↓
on a keyboard.2 ABC
on a phone or remote control.NumPad3 = 88
Numeric keypad
3 PgDn
on a keyboard.3 DEF
on a phone or remote control.NumPad4 = 89
Numeric keypad
4 ←
on a keyboard.4 GHI
on a phone or remote control.NumPad5 = 90
Numeric keypad
5
on a keyboard.5 JKL
on a phone or remote control.NumPad6 = 91
Numeric keypad
6 →
on a keyboard.6 MNO
on a phone or remote control.NumPad7 = 92
Numeric keypad
7 Home
on a keyboard.7 PQRS
or7 PRS
on a phone or remote control.NumPad8 = 93
Numeric keypad
8 ↑
on a keyboard.8 TUV
on a phone or remote control.NumPad9 = 94
Numeric keypad
9 PgUp
on a keyboard.9 WXYZ
or9 WXY
on a phone or remote control.NumPadAdd = 95
Numeric keypad
+
.NumPadClear = 96
Numeric keypad
C
orAC
(All Clear). Also for use with numpads that have aClear
key that is separate from theNumLock
key. On the Mac, the numpadClear
key is NumLock.NumPadComma = 97
Numeric keypad
,
(thousands separator). For locales where the thousands separator is a "." (e.g., Brazil), this key may generate a.
.NumPadDecimal = 98
Numeric keypad
. Del
. For locales where the decimal separator is "," (e.g., Brazil), this key may generate a,
.NumPadDivide = 99
Numeric keypad
/
.NumPadEnter = 100
Numeric keypad
Enter
.NumPadEqual = 101
Numeric keypad
=
.NumPadMultiply = 102
Numeric keypad
on a keyboard. For use with numpads that provide mathematical operations (
+
,-
,and
/
).NumPadParenLeft = 103
Numeric keypad
(
. Found on the Microsoft Natural Keyboard.NumPadParenRight = 104
Numeric keypad
)
. Found on the Microsoft Natural Keyboard.NumPadSubtract = 105
Numeric keypad
-
.O = 34
o
on a US keyboard.Open = 160
Open
. Legacy. Found on Sun’s USB keyboard.P = 35
p
on a US keyboard.PageDown = 78
Page Down
,PgDn
or⇟
.PageUp = 79
Page Up
,PgUp
or⇞
.Paste = 161
Paste
. Legacy. Found on Sun’s USB keyboard.Pause = 133
Pause Break
.Period = 47
.>
on a US keyboard.Power = 150
Power
.PrintScreen = 131
PrtScr SysRq
orPrint Screen
.Props = 162
Props
. Legacy. Found on Sun’s USB keyboard.Q = 36
q
on a US keyboard.a
on an AZERTY (e.g., French) keyboard.Quote = 48
'"
on a US keyboard.R = 37
r
on a US keyboard.S = 38
s
on a US keyboard.ScrollLock = 132
Scroll Lock
.Select = 163
Select
. Legacy. Found on Sun’s USB keyboard.Semicolon = 49
;:
on a US keyboard.ShiftLeft = 61
Shift
or⇧
.ShiftRight = 62
Shift
or⇧
.Slash = 50
/?
on a US keyboard.Sleep = 151
Sleep
.Space = 63
(space).
T = 39
t
on a US keyboard.Tab = 64
Tab
or⇥
.U = 40
u
on a US keyboard.Undo = 164
Undo
. Legacy. Found on Sun’s USB keyboard.V = 41
v
on a US keyboard.W = 42
w
on a US keyboard.z
on an AZERTY (e.g., French) keyboard.WakeUp = 155
Wake Up
.X = 43
x
on a US keyboard.Y = 44
y
on a US keyboard.z
on a QWERTZ (e.g., German) keyboard.Z = 45
z
on a US keyboard.w
on an AZERTY (e.g., French) keyboard.y
on a QWERTZ (e.g., German) keyboard.
Remarks
The names follow the W3C codes: https://www.w3.org/TR/uievents-code/