virkeyname-linux man page

Key name values for linux

List of linux key code names, with corresponding key code values

KEY_RESERVED

Key value 0 (0x0)

KEY_ESC

Key value 1 (0x1)

KEY_1

Key value 2 (0x2)

KEY_2

Key value 3 (0x3)

KEY_3

Key value 4 (0x4)

KEY_4

Key value 5 (0x5)

KEY_5

Key value 6 (0x6)

KEY_6

Key value 7 (0x7)

KEY_7

Key value 8 (0x8)

KEY_8

Key value 9 (0x9)

KEY_9

Key value 10 (0xa)

KEY_0

Key value 11 (0xb)

KEY_MINUS

Key value 12 (0xc)

KEY_EQUAL

Key value 13 (0xd)

KEY_BACKSPACE

Key value 14 (0xe)

KEY_TAB

Key value 15 (0xf)

KEY_Q

Key value 16 (0x10)

KEY_W

Key value 17 (0x11)

KEY_E

Key value 18 (0x12)

KEY_R

Key value 19 (0x13)

KEY_T

Key value 20 (0x14)

KEY_Y

Key value 21 (0x15)

KEY_U

Key value 22 (0x16)

KEY_I

Key value 23 (0x17)

KEY_O

Key value 24 (0x18)

KEY_P

Key value 25 (0x19)

KEY_LEFTBRACE

Key value 26 (0x1a)

KEY_RIGHTBRACE

Key value 27 (0x1b)

KEY_ENTER

Key value 28 (0x1c)

KEY_LEFTCTRL

Key value 29 (0x1d)

KEY_A

Key value 30 (0x1e)

KEY_S

Key value 31 (0x1f)

KEY_D

Key value 32 (0x20)

KEY_F

Key value 33 (0x21)

KEY_G

Key value 34 (0x22)

KEY_H

Key value 35 (0x23)

KEY_J

Key value 36 (0x24)

KEY_K

Key value 37 (0x25)

KEY_L

Key value 38 (0x26)

KEY_SEMICOLON

Key value 39 (0x27)

KEY_APOSTROPHE

Key value 40 (0x28)

KEY_GRAVE

Key value 41 (0x29)

KEY_LEFTSHIFT

Key value 42 (0x2a)

KEY_BACKSLASH

Key value 43 (0x2b)

KEY_Z

Key value 44 (0x2c)

KEY_X

Key value 45 (0x2d)

KEY_C

Key value 46 (0x2e)

KEY_V

Key value 47 (0x2f)

KEY_B

Key value 48 (0x30)

KEY_N

Key value 49 (0x31)

KEY_M

Key value 50 (0x32)

KEY_COMMA

Key value 51 (0x33)

KEY_DOT

Key value 52 (0x34)

KEY_SLASH

Key value 53 (0x35)

KEY_RIGHTSHIFT

Key value 54 (0x36)

KEY_KPASTERISK

Key value 55 (0x37)

KEY_LEFTALT

Key value 56 (0x38)

KEY_SPACE

Key value 57 (0x39)

KEY_CAPSLOCK

Key value 58 (0x3a)

KEY_F1

Key value 59 (0x3b)

KEY_F2

Key value 60 (0x3c)

KEY_F3

Key value 61 (0x3d)

KEY_F4

Key value 62 (0x3e)

KEY_F5

Key value 63 (0x3f)

KEY_F6

Key value 64 (0x40)

KEY_F7

Key value 65 (0x41)

KEY_F8

Key value 66 (0x42)

KEY_F9

Key value 67 (0x43)

KEY_F10

Key value 68 (0x44)

KEY_NUMLOCK

Key value 69 (0x45)

KEY_SCROLLLOCK

Key value 70 (0x46)

KEY_KP7

Key value 71 (0x47)

KEY_KP8

Key value 72 (0x48)

KEY_KP9

Key value 73 (0x49)

KEY_KPMINUS

Key value 74 (0x4a)

KEY_KP4

Key value 75 (0x4b)

KEY_KP5

Key value 76 (0x4c)

KEY_KP6

Key value 77 (0x4d)

KEY_KPPLUS

Key value 78 (0x4e)

KEY_KP1

Key value 79 (0x4f)

KEY_KP2

Key value 80 (0x50)

KEY_KP3

Key value 81 (0x51)

KEY_KP0

Key value 82 (0x52)

KEY_KPDOT

Key value 83 (0x53)

None

Key value 84 (0x54)

KEY_ZENKAKUHANKAKU

Key value 85 (0x55)

KEY_102ND

Key value 86 (0x56)

KEY_F11

Key value 87 (0x57)

KEY_F12

Key value 88 (0x58)

KEY_RO

Key value 89 (0x59)

KEY_KATAKANA

Key value 90 (0x5a)

KEY_HIRAGANA

Key value 91 (0x5b)

KEY_HENKAN

Key value 92 (0x5c)

KEY_KATAKANAHIRAGANA

Key value 93 (0x5d)

KEY_MUHENKAN

Key value 94 (0x5e)

KEY_KPJPCOMMA

Key value 95 (0x5f)

KEY_KPENTER

Key value 96 (0x60)

KEY_RIGHTCTRL

Key value 97 (0x61)

KEY_KPSLASH

Key value 98 (0x62)

KEY_SYSRQ

Key value 99 (0x63)

KEY_RIGHTALT

Key value 100 (0x64)

KEY_LINEFEED

Key value 101 (0x65)

KEY_HOME

Key value 102 (0x66)

KEY_UP

Key value 103 (0x67)

KEY_PAGEUP

Key value 104 (0x68)

KEY_LEFT

Key value 105 (0x69)

KEY_RIGHT

Key value 106 (0x6a)

KEY_END

Key value 107 (0x6b)

KEY_DOWN

Key value 108 (0x6c)

KEY_PAGEDOWN

Key value 109 (0x6d)

KEY_INSERT

Key value 110 (0x6e)

KEY_DELETE

Key value 111 (0x6f)

KEY_MACRO

Key value 112 (0x70)

KEY_MUTE

Key value 113 (0x71)

KEY_VOLUMEDOWN

Key value 114 (0x72)

KEY_VOLUMEUP

Key value 115 (0x73)

KEY_POWER

Key value 116 (0x74)

KEY_KPEQUAL

Key value 117 (0x75)

KEY_KPPLUSMINUS

Key value 118 (0x76)

KEY_PAUSE

Key value 119 (0x77)

KEY_SCALE

Key value 120 (0x78)

KEY_KPCOMMA

Key value 121 (0x79)

KEY_HANGEUL

Key value 122 (0x7a)

KEY_HANJA

Key value 123 (0x7b)

KEY_YEN

Key value 124 (0x7c)

KEY_LEFTMETA

Key value 125 (0x7d)

KEY_RIGHTMETA

Key value 126 (0x7e)

KEY_COMPOSE

Key value 127 (0x7f)

KEY_STOP

Key value 128 (0x80)

KEY_AGAIN

Key value 129 (0x81)

KEY_PROPS

Key value 130 (0x82)

KEY_UNDO

Key value 131 (0x83)

KEY_FRONT

Key value 132 (0x84)

KEY_COPY

Key value 133 (0x85)

KEY_OPEN

Key value 134 (0x86)

KEY_PASTE

Key value 135 (0x87)

KEY_FIND

Key value 136 (0x88)

KEY_CUT

Key value 137 (0x89)

KEY_HELP

Key value 138 (0x8a)

KEY_MENU

Key value 139 (0x8b)

KEY_CALC

Key value 140 (0x8c)

KEY_SETUP

Key value 141 (0x8d)

KEY_SLEEP

Key value 142 (0x8e)

KEY_WAKEUP

Key value 143 (0x8f)

KEY_FILE

Key value 144 (0x90)

KEY_SENDFILE

Key value 145 (0x91)

KEY_DELETEFILE

Key value 146 (0x92)

KEY_XFER

Key value 147 (0x93)

KEY_PROG1

Key value 148 (0x94)

KEY_PROG2

Key value 149 (0x95)

KEY_WWW

Key value 150 (0x96)

KEY_MSDOS

Key value 151 (0x97)

KEY_SCREENLOCK

Key value 152 (0x98)

KEY_DIRECTION

Key value 153 (0x99)

KEY_CYCLEWINDOWS

Key value 154 (0x9a)

KEY_MAIL

Key value 155 (0x9b)

KEY_BOOKMARKS

Key value 156 (0x9c)

KEY_COMPUTER

Key value 157 (0x9d)

KEY_BACK

Key value 158 (0x9e)

KEY_FORWARD

Key value 159 (0x9f)

KEY_CLOSECD

Key value 160 (0xa0)

KEY_EJECTCD

Key value 161 (0xa1)

KEY_EJECTCLOSECD

Key value 162 (0xa2)

KEY_NEXTSONG

Key value 163 (0xa3)

KEY_PLAYPAUSE

Key value 164 (0xa4)

KEY_PREVIOUSSONG

Key value 165 (0xa5)

KEY_STOPCD

Key value 166 (0xa6)

KEY_RECORD

Key value 167 (0xa7)

KEY_REWIND

Key value 168 (0xa8)

KEY_PHONE

Key value 169 (0xa9)

KEY_ISO

Key value 170 (0xaa)

KEY_CONFIG

Key value 171 (0xab)

KEY_HOMEPAGE

Key value 172 (0xac)

KEY_REFRESH

Key value 173 (0xad)

KEY_EXIT

Key value 174 (0xae)

KEY_MOVE

Key value 175 (0xaf)

KEY_EDIT

Key value 176 (0xb0)

KEY_SCROLLUP

Key value 177 (0xb1)

KEY_SCROLLDOWN

Key value 178 (0xb2)

KEY_KPLEFTPAREN

Key value 179 (0xb3)

KEY_KPRIGHTPAREN

Key value 180 (0xb4)

KEY_NEW

Key value 181 (0xb5)

KEY_REDO

Key value 182 (0xb6)

KEY_F13

Key value 183 (0xb7)

KEY_F14

Key value 184 (0xb8)

KEY_F15

Key value 185 (0xb9)

KEY_F16

Key value 186 (0xba)

KEY_F17

Key value 187 (0xbb)

KEY_F18

Key value 188 (0xbc)

KEY_F19

Key value 189 (0xbd)

KEY_F20

Key value 190 (0xbe)

KEY_F21

Key value 191 (0xbf)

KEY_F22

Key value 192 (0xc0)

KEY_F23

Key value 193 (0xc1)

KEY_F24

Key value 194 (0xc2)

None

Key value 195 (0xc3)

None

Key value 196 (0xc4)

None

Key value 197 (0xc5)

None

Key value 198 (0xc6)

None

Key value 199 (0xc7)

KEY_PLAYCD

Key value 200 (0xc8)

KEY_PAUSECD

Key value 201 (0xc9)

KEY_PROG3

Key value 202 (0xca)

KEY_PROG4

Key value 203 (0xcb)

KEY_DASHBOARD

Key value 204 (0xcc)

KEY_SUSPEND

Key value 205 (0xcd)

KEY_CLOSE

Key value 206 (0xce)

KEY_PLAY

Key value 207 (0xcf)

KEY_FASTFORWARD

Key value 208 (0xd0)

KEY_BASSBOOST

Key value 209 (0xd1)

KEY_PRINT

Key value 210 (0xd2)

KEY_HP

Key value 211 (0xd3)

KEY_CAMERA

Key value 212 (0xd4)

KEY_SOUND

Key value 213 (0xd5)

KEY_QUESTION

Key value 214 (0xd6)

KEY_EMAIL

Key value 215 (0xd7)

KEY_CHAT

Key value 216 (0xd8)

KEY_SEARCH

Key value 217 (0xd9)

KEY_CONNECT

Key value 218 (0xda)

KEY_FINANCE

Key value 219 (0xdb)

KEY_SPORT

Key value 220 (0xdc)

KEY_SHOP

Key value 221 (0xdd)

KEY_ALTERASE

Key value 222 (0xde)

KEY_CANCEL

Key value 223 (0xdf)

KEY_BRIGHTNESSDOWN

Key value 224 (0xe0)

KEY_BRIGHTNESSUP

Key value 225 (0xe1)

KEY_MEDIA

Key value 226 (0xe2)

KEY_SWITCHVIDEOMODE

Key value 227 (0xe3)

KEY_KBDILLUMTOGGLE

Key value 228 (0xe4)

KEY_KBDILLUMDOWN

Key value 229 (0xe5)

KEY_KBDILLUMUP

Key value 230 (0xe6)

KEY_SEND

Key value 231 (0xe7)

KEY_REPLY

Key value 232 (0xe8)

KEY_FORWARDMAIL

Key value 233 (0xe9)

KEY_SAVE

Key value 234 (0xea)

KEY_DOCUMENTS

Key value 235 (0xeb)

KEY_BATTERY

Key value 236 (0xec)

KEY_BLUETOOTH

Key value 237 (0xed)

KEY_WLAN

Key value 238 (0xee)

KEY_UWB

Key value 239 (0xef)

KEY_UNKNOWN

Key value 240 (0xf0)

KEY_VIDEO_NEXT

Key value 241 (0xf1)

KEY_VIDEO_PREV

Key value 242 (0xf2)

KEY_BRIGHTNESS_CYCLE

Key value 243 (0xf3)

KEY_BRIGHTNESS_ZERO

Key value 244 (0xf4)

KEY_DISPLAY_OFF

Key value 245 (0xf5)

KEY_WIMAX

Key value 246 (0xf6)

None

Key value 247 (0xf7)

None

Key value 248 (0xf8)

None

Key value 249 (0xf9)

None

Key value 250 (0xfa)

None

Key value 251 (0xfb)

None

Key value 252 (0xfc)

None

Key value 253 (0xfd)

None

Key value 254 (0xfe)

None

Key value 255 (0xff)

BTN_0

Key value 256 (0x100)

BTN_1

Key value 257 (0x101)

BTN_2

Key value 258 (0x102)

BTN_3

Key value 259 (0x103)

BTN_4

Key value 260 (0x104)

BTN_5

Key value 261 (0x105)

BTN_6

Key value 262 (0x106)

BTN_7

Key value 263 (0x107)

BTN_8

Key value 264 (0x108)

BTN_9

Key value 265 (0x109)

BTN_LEFT

Key value 272 (0x110)

BTN_RIGHT

Key value 273 (0x111)

BTN_MIDDLE

Key value 274 (0x112)

BTN_SIDE

Key value 275 (0x113)

BTN_EXTRA

Key value 276 (0x114)

BTN_FORWARD

Key value 277 (0x115)

BTN_BACK

Key value 278 (0x116)

BTN_TASK

Key value 279 (0x117)

BTN_TRIGGER

Key value 288 (0x120)

BTN_THUMB

Key value 289 (0x121)

BTN_THUMB2

Key value 290 (0x122)

BTN_TOP

Key value 291 (0x123)

BTN_TOP2

Key value 292 (0x124)

BTN_PINKIE

Key value 293 (0x125)

BTN_BASE

Key value 294 (0x126)

BTN_BASE2

Key value 295 (0x127)

BTN_BASE3

Key value 296 (0x128)

BTN_BASE4

Key value 297 (0x129)

BTN_BASE5

Key value 298 (0x12a)

BTN_BASE6

Key value 299 (0x12b)

BTN_DEAD

Key value 303 (0x12f)

BTN_A

Key value 304 (0x130)

BTN_B

Key value 305 (0x131)

BTN_C

Key value 306 (0x132)

BTN_X

Key value 307 (0x133)

BTN_Y

Key value 308 (0x134)

BTN_Z

Key value 309 (0x135)

BTN_TL

Key value 310 (0x136)

BTN_TR

Key value 311 (0x137)

BTN_TL2

Key value 312 (0x138)

BTN_TR2

Key value 313 (0x139)

BTN_SELECT

Key value 314 (0x13a)

BTN_START

Key value 315 (0x13b)

BTN_MODE

Key value 316 (0x13c)

BTN_THUMBL

Key value 317 (0x13d)

BTN_THUMBR

Key value 318 (0x13e)

BTN_TOOL_PEN

Key value 320 (0x140)

BTN_TOOL_RUBBER

Key value 321 (0x141)

BTN_TOOL_BRUSH

Key value 322 (0x142)

BTN_TOOL_PENCIL

Key value 323 (0x143)

BTN_TOOL_AIRBRUSH

Key value 324 (0x144)

BTN_TOOL_FINGER

Key value 325 (0x145)

BTN_TOOL_MOUSE

Key value 326 (0x146)

BTN_TOOL_LENS

Key value 327 (0x147)

BTN_TOUCH

Key value 330 (0x14a)

BTN_STYLUS

Key value 331 (0x14b)

BTN_STYLUS2

Key value 332 (0x14c)

BTN_TOOL_DOUBLETAP

Key value 333 (0x14d)

BTN_TOOL_TRIPLETAP

Key value 334 (0x14e)

BTN_TOOL_QUADTAP

Key value 335 (0x14f)

BTN_GEAR_DOWN

Key value 336 (0x150)

BTN_GEAR_UP

Key value 337 (0x151)

KEY_OK

Key value 352 (0x160)

KEY_SELECT

Key value 353 (0x161)

KEY_GOTO

Key value 354 (0x162)

KEY_CLEAR

Key value 355 (0x163)

KEY_POWER2

Key value 356 (0x164)

KEY_OPTION

Key value 357 (0x165)

KEY_INFO

Key value 358 (0x166)

KEY_TIME

Key value 359 (0x167)

KEY_VENDOR

Key value 360 (0x168)

KEY_ARCHIVE

Key value 361 (0x169)

KEY_PROGRAM

Key value 362 (0x16a)

KEY_CHANNEL

Key value 363 (0x16b)

KEY_FAVORITES

Key value 364 (0x16c)

KEY_EPG

Key value 365 (0x16d)

KEY_PVR

Key value 366 (0x16e)

KEY_MHP

Key value 367 (0x16f)

KEY_LANGUAGE

Key value 368 (0x170)

KEY_TITLE

Key value 369 (0x171)

KEY_SUBTITLE

Key value 370 (0x172)

KEY_ANGLE

Key value 371 (0x173)

KEY_ZOOM

Key value 372 (0x174)

KEY_MODE

Key value 373 (0x175)

KEY_KEYBOARD

Key value 374 (0x176)

KEY_SCREEN

Key value 375 (0x177)

KEY_PC

Key value 376 (0x178)

KEY_TV

Key value 377 (0x179)

KEY_TV2

Key value 378 (0x17a)

KEY_VCR

Key value 379 (0x17b)

KEY_VCR2

Key value 380 (0x17c)

KEY_SAT

Key value 381 (0x17d)

KEY_SAT2

Key value 382 (0x17e)

KEY_CD

Key value 383 (0x17f)

KEY_TAPE

Key value 384 (0x180)

KEY_RADIO

Key value 385 (0x181)

KEY_TUNER

Key value 386 (0x182)

KEY_PLAYER

Key value 387 (0x183)

KEY_TEXT

Key value 388 (0x184)

KEY_DVD

Key value 389 (0x185)

KEY_AUX

Key value 390 (0x186)

KEY_MP3

Key value 391 (0x187)

KEY_AUDIO

Key value 392 (0x188)

KEY_VIDEO

Key value 393 (0x189)

KEY_DIRECTORY

Key value 394 (0x18a)

KEY_LIST

Key value 395 (0x18b)

KEY_MEMO

Key value 396 (0x18c)

KEY_CALENDAR

Key value 397 (0x18d)

KEY_RED

Key value 398 (0x18e)

KEY_GREEN

Key value 399 (0x18f)

KEY_YELLOW

Key value 400 (0x190)

KEY_BLUE

Key value 401 (0x191)

KEY_CHANNELUP

Key value 402 (0x192)

KEY_CHANNELDOWN

Key value 403 (0x193)

KEY_FIRST

Key value 404 (0x194)

KEY_LAST

Key value 405 (0x195)

KEY_AB

Key value 406 (0x196)

KEY_NEXT

Key value 407 (0x197)

KEY_RESTART

Key value 408 (0x198)

KEY_SLOW

Key value 409 (0x199)

KEY_SHUFFLE

Key value 410 (0x19a)

KEY_BREAK

Key value 411 (0x19b)

KEY_PREVIOUS

Key value 412 (0x19c)

KEY_DIGITS

Key value 413 (0x19d)

KEY_TEEN

Key value 414 (0x19e)

KEY_TWEN

Key value 415 (0x19f)

KEY_VIDEOPHONE

Key value 416 (0x1a0)

KEY_GAMES

Key value 417 (0x1a1)

KEY_ZOOMIN

Key value 418 (0x1a2)

KEY_ZOOMOUT

Key value 419 (0x1a3)

KEY_ZOOMRESET

Key value 420 (0x1a4)

KEY_WORDPROCESSOR

Key value 421 (0x1a5)

KEY_EDITOR

Key value 422 (0x1a6)

KEY_SPREADSHEET

Key value 423 (0x1a7)

KEY_GRAPHICSEDITOR

Key value 424 (0x1a8)

KEY_PRESENTATION

Key value 425 (0x1a9)

KEY_DATABASE

Key value 426 (0x1aa)

KEY_NEWS

Key value 427 (0x1ab)

KEY_VOICEMAIL

Key value 428 (0x1ac)

KEY_ADDRESSBOOK

Key value 429 (0x1ad)

KEY_MESSENGER

Key value 430 (0x1ae)

KEY_DISPLAYTOGGLE

Key value 431 (0x1af)

KEY_SPELLCHECK

Key value 432 (0x1b0)

KEY_LOGOFF

Key value 433 (0x1b1)

KEY_DOLLAR

Key value 434 (0x1b2)

KEY_EURO

Key value 435 (0x1b3)

KEY_FRAMEBACK

Key value 436 (0x1b4)

KEY_FRAMEFORWARD

Key value 437 (0x1b5)

KEY_CONTEXT_MENU

Key value 438 (0x1b6)

KEY_MEDIA_REPEAT

Key value 439 (0x1b7)

KEY_DEL_EOL

Key value 448 (0x1c0)

KEY_DEL_EOS

Key value 449 (0x1c1)

KEY_INS_LINE

Key value 450 (0x1c2)

KEY_DEL_LINE

Key value 451 (0x1c3)

KEY_FN

Key value 464 (0x1d0)

KEY_FN_ESC

Key value 465 (0x1d1)

KEY_FN_F1

Key value 466 (0x1d2)

KEY_FN_F2

Key value 467 (0x1d3)

KEY_FN_F3

Key value 468 (0x1d4)

KEY_FN_F4

Key value 469 (0x1d5)

KEY_FN_F5

Key value 470 (0x1d6)

KEY_FN_F6

Key value 471 (0x1d7)

KEY_FN_F7

Key value 472 (0x1d8)

KEY_FN_F8

Key value 473 (0x1d9)

KEY_FN_F9

Key value 474 (0x1da)

KEY_FN_F10

Key value 475 (0x1db)

KEY_FN_F11

Key value 476 (0x1dc)

KEY_FN_F12

Key value 477 (0x1dd)

KEY_FN_1

Key value 478 (0x1de)

KEY_FN_2

Key value 479 (0x1df)

KEY_FN_D

Key value 480 (0x1e0)

KEY_FN_E

Key value 481 (0x1e1)

KEY_FN_F

Key value 482 (0x1e2)

KEY_FN_S

Key value 483 (0x1e3)

KEY_FN_B

Key value 484 (0x1e4)

KEY_BRL_DOT1

Key value 497 (0x1f1)

KEY_BRL_DOT2

Key value 498 (0x1f2)

KEY_BRL_DOT3

Key value 499 (0x1f3)

KEY_BRL_DOT4

Key value 500 (0x1f4)

KEY_BRL_DOT5

Key value 501 (0x1f5)

KEY_BRL_DOT6

Key value 502 (0x1f6)

KEY_BRL_DOT7

Key value 503 (0x1f7)

KEY_BRL_DOT8

Key value 504 (0x1f8)

KEY_BRL_DOT9

Key value 505 (0x1f9)

KEY_BRL_DOT10

Key value 506 (0x1fa)

KEY_NUMERIC_0

Key value 512 (0x200)

KEY_NUMERIC_1

Key value 513 (0x201)

KEY_NUMERIC_2

Key value 514 (0x202)

KEY_NUMERIC_3

Key value 515 (0x203)

KEY_NUMERIC_4

Key value 516 (0x204)

KEY_NUMERIC_5

Key value 517 (0x205)

KEY_NUMERIC_6

Key value 518 (0x206)

KEY_NUMERIC_7

Key value 519 (0x207)

KEY_NUMERIC_8

Key value 520 (0x208)

KEY_NUMERIC_9

Key value 521 (0x209)

KEY_NUMERIC_STAR

Key value 522 (0x20a)

KEY_NUMERIC_POUND

Key value 523 (0x20b)

KEY_RFKILL

Key value 524 (0x20c)

Referenced By

virsh(1).

2017-12-06 libvirt-3.10.0 Virtualization Support