Close Menu
  • Home
  • News
  • Mods
  • Guides
  • Tech
  • Apps
What's New?
GTA 6 Trailer 2 is out now! Watch Rockstar's latest Grand Theft Auto VI trailer with new gameplay, Vice City, characters & release updates to download in 4K.

Grand Theft Auto VI Trailer 2: OUT NOW

May 6, 2025
A guide on How to install, Join, use, and download Shadow Cloud Gaming Service for Free and Play Video Games Anywhere, Anytime!

Shadow: The Ultimate Guide to Cloud Gaming Service!

April 24, 2023
Facebook X (Twitter) Instagram YouTube
Saturday, June 7
Game Decide
Facebook X (Twitter) Instagram YouTube
  • Home
  • News
  • Mods
  • Guides
  • Tech
  • Apps
Shop
  • Gaming
  • Computer
  • Software Guides
  • Graphic Tutorials
  • GTA V
  • GTA IV
  • Minecraft
  • Red Dead Redemption
Game Decide
Home»Tech Tutorials»Computer Guides»List of Keyboard Virtual-Key Codes with Decimal/Hex Values

List of Keyboard Virtual-Key Codes with Decimal/Hex Values

Updated:March 13, 20255 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
Explore complete list of Windows Virtual-Key Codes with decimal values and key mappings for keyboard and mouse inputs. Perfect for developers and automation.
Share
Reddit Telegram WhatsApp Email Copy Link

Explore the full list of Windows Keyboard Virtual-Key Codes with their symbolic constant names, decimal values, and key equivalents. Find key mappings for function keys, arrow keys, media controls, and more.

Table of Contents

  • Virtual-Key Codes with Decimal Value
  • Virtual-Key Codes with Hex Value
    • Mouse Buttons
    • Keyboard Keys
    • Number and Letter Keys
    • Windows and Application Keys
    • Numeric Keypad (Numpad) Keys
    • Function Keys (F1-F24)
    • Lock Keys
    • Media Control and Special Keys
    • OEM Keys (Special Characters)
  • Conclusion

Windows uses Virtual-Key Codes to identify keyboard and mouse inputs. These codes are essential for developers working with keyboard events, input handling, and automation. Below is a complete list of Virtual-Key Codes, their decimal values, and their corresponding keys.

Virtual-Key Codes with Decimal Value

Here is a list of Keyboard Virtual-Key Codes with their symbolic constant names, decimal values, and equivalent mouse or keyboard actions:

Symbolic constant nameValue (decimal)Mouse or keyboard equivalent
VK_LBUTTON1Left mouse button
VK_RBUTTON2Right mouse button
VK_CANCEL3Control-break processing
VK_MBUTTON4Middle mouse button (three-button mouse)
VK_XBUTTON15Windows 2000: X1 mouse button
VK_XBUTTON26Windows 2000: X2 mouse button
—7Undefined
VK_BACK8BACKSPACE key
VK_TAB9TAB key
—10–11Reserved
VK_CLEAR12CLEAR key
VK_RETURN13ENTER key
—14–15Undefined
VK_SHIFT16SHIFT key
VK_CONTROL17CTRL key
VK_MENU18ALT key
VK_PAUSE19PAUSE key
VK_CAPITAL20CAPS LOCK key
VK_KANA21IME Kana mode
VK_HANGUEL21IME Hanguel mode (maintained for compatibility; use VK_HANGUL)
VK_HANGUL21IME Hangul mode
—22Undefined
VK_JUNJA23IME Junja mode
VK_FINAL24IME final mode
VK_HANJA25IME Hanja mode
VK_KANJI25IME Kanji mode
—26Undefined
VK_ESCAPE27ESC key
VK_CONVERT28IME convert
VK_NONCONVERT29IME nonconvert
VK_ACCEPT30IME accept
VK_MODECHANGE31IME mode change request
VK_SPACE32SPACEBAR
VK_PRIOR33PAGE UP key
VK_NEXT34PAGE DOWN key
VK_END35END key
VK_HOME36HOME key
VK_LEFT37LEFT ARROW key
VK_UP38UP ARROW key
VK_RIGHT39RIGHT ARROW key
VK_DOWN40DOWN ARROW key
VK_SELECT41SELECT key
VK_PRINT42PRINT key
VK_EXECUTE43EXECUTE key
VK_SNAPSHOT44PRINT SCREEN key
VK_INSERT45INS key
VK_DELETE46DEL key
VK_HELP47HELP key
 480 key
 491 key
 502 key
 513 key
 524 key
 535 key
 546 key
 557 key
 568 key
 579 key
—58–64Undefined
 65A key
 66B key
 67C key
 68D key
 69E key
 70F key
 71G key
 72H key
 73I key
 74J key
 75K key
 76L key
 77M key
 78N key
 79O key
 80P key
 81Q key
 82R key
 83S key
 84T key
 85U key
 86V key
 87W key
 88X key
 89Y key
 90Z key
VK_LWIN91Left Windows key (Microsoft® Natural® keyboard)
VK_RWIN92Right Windows key (Natural keyboard)
VK_APPS93Applications key (Natural keyboard)
—94Reserved
VK_SLEEP95Computer Sleep key
VK_NUMPAD096Numeric keypad 0 key
VK_NUMPAD197Numeric keypad 1 key
VK_NUMPAD298Numeric keypad 2 key
VK_NUMPAD399Numeric keypad 3 key
VK_NUMPAD4100Numeric keypad 4 key
VK_NUMPAD5101Numeric keypad 5 key
VK_NUMPAD6102Numeric keypad 6 key
VK_NUMPAD7103Numeric keypad 7 key
VK_NUMPAD8104Numeric keypad 8 key
VK_NUMPAD9105Numeric keypad 9 key
VK_MULTIPLY106Multiply key
VK_ADD107Add key
VK_SEPARATOR108Separator key
VK_SUBTRACT109Subtract key
VK_DECIMAL110Decimal key
VK_DIVIDE111Divide key
VK_F1112F1 key
VK_F2113F2 key
VK_F3114F3 key
VK_F4115F4 key
VK_F5116F5 key
VK_F6117F6 key
VK_F7118F7 key
VK_F8119F8 key
VK_F9120F9 key
VK_F10121F10 key
VK_F11122F11 key
VK_F12123F12 key
VK_F13124F13 key
VK_F14125F14 key
VK_F15126F15 key
VK_F16127F16 key
VK_F17128HF17 key
VK_F18129HF18 key
VK_F19130HF19 key
VK_F20131HF20 key
VK_F21132HF21 key
VK_F22133HF22 key
VK_F23134HF23 key
VK_F24135HF24 key
—136–143Unassigned
VK_NUMLOCK144NUM LOCK key
VK_SCROLL145SCROLL LOCK key
 146–150OEM specific
—151–159Unassigned
VK_LSHIFT160Left SHIFT key
VK_RSHIFT161Right SHIFT key
VK_LCONTROL162Left CONTROL key
VK_RCONTROL163Right CONTROL key
VK_LMENU164Left MENU key
VK_RMENU165Right MENU key
VK_BROWSER_BACK166Windows 2000: Browser Back key
VK_BROWSER_FORWARD167Windows 2000: Browser Forward key
VK_BROWSER_REFRESH168Windows 2000: Browser Refresh key
VK_BROWSER_STOP169Windows 2000: Browser Stop key
VK_BROWSER_SEARCH170Windows 2000: Browser Search key
VK_BROWSER_FAVORITES171Windows 2000: Browser Favorites key
VK_BROWSER_HOME172Windows 2000: Browser Start and Home key
VK_VOLUME_MUTE173Windows 2000: Volume Mute key
VK_VOLUME_DOWN174Windows 2000: Volume Down key
VK_VOLUME_UP175Windows 2000: Volume Up key
VK_MEDIA_NEXT_TRACK176Windows 2000: Next Track key
VK_MEDIA_PREV_TRACK177Windows 2000: Previous Track key
VK_MEDIA_STOP178Windows 2000: Stop Media key
VK_MEDIA_PLAY_PAUSE179Windows 2000: Play/Pause Media key
VK_LAUNCH_MAIL180Windows 2000: Start Mail key
VK_LAUNCH_MEDIA_SELECT181Windows 2000: Select Media key
VK_LAUNCH_APP1182Windows 2000: Start Application 1 key
VK_LAUNCH_APP2183Windows 2000: Start Application 2 key
—184-185Reserved
VK_OEM_1186Windows 2000: For the US standard keyboard, the ‘;:’ key
VK_OEM_PLUS187Windows 2000: For any country/region, the ‘+’ key
VK_OEM_COMMA188Windows 2000: For any country/region, the ‘,’ key
VK_OEM_MINUS189Windows 2000: For any country/region, the ‘-‘ key
VK_OEM_PERIOD190Windows 2000: For any country/region, the ‘.’ key
VK_OEM_2191Windows 2000: For the US standard keyboard, the ‘/?’ key
VK_OEM_3192Windows 2000: For the US standard keyboard, the ‘`~’ key
—193–215Reserved
—216–218Unassigned
VK_OEM_4219Windows 2000: For the US standard keyboard, the ‘[{‘ key
VK_OEM_5220Windows 2000: For the US standard keyboard, the ‘\|’ key
VK_OEM_6221Windows 2000: For the US standard keyboard, the ‘]}’ key
VK_OEM_7222Windows 2000: For the US standard keyboard, the ‘single-quote/double-quote’ key
VK_OEM_8223
—224Reserved
 225OEM specific
VK_OEM_102226Windows 2000: Either the angle bracket key or the backslash key on the RT 102-key keyboard
 227–228OEM specific
VK_PROCESSKEY229Windows 95/98, Windows NT 4.0, Windows 2000: IME PROCESS key
 230OEM specific
VK_PACKET231Windows 2000: Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP
—232Unassigned
 233–245OEM specific
VK_ATTN246Attn key
VK_CRSEL247CrSel key
VK_EXSEL248ExSel key
VK_EREOF249Erase EOF key
VK_PLAY250Play key
VK_ZOOM251Zoom key
VK_NONAME252Reserved for future use
VK_PA1253PA1 key
VK_OEM_CLEAR254Clear key
Complete List of Keyboard Virtual-Key Codes with Decimal Values

How to Update Drivers for Mouse & Keyboard Drivers

Virtual-Key Codes with Hex Value

Virtual-Key (VK) codes are constants used in Windows programming to represent keyboard keys in various APIs like GetAsyncKeyState(), GetKeyState(), and WM_KEYDOWN. These codes allow applications to detect key presses in a standardized way.

Here is a complete list of Virtual-Key (VK) codes used in Windows programming:

Mouse Buttons

Key NameVK CodeHex Value
Left Mouse ButtonVK_LBUTTON0x01
Right Mouse ButtonVK_RBUTTON0x02
Control-break ProcessingVK_CANCEL0x03
Middle Mouse ButtonVK_MBUTTON0x04
X1 Mouse ButtonVK_XBUTTON10x05
X2 Mouse ButtonVK_XBUTTON20x06

Keyboard Keys

Key NameVK CodeHex Value
BackspaceVK_BACK0x08
TabVK_TAB0x09
ClearVK_CLEAR0x0C
Enter/ReturnVK_RETURN0x0D
ShiftVK_SHIFT0x10
Control (Ctrl)VK_CONTROL0x11
Alt (Menu)VK_MENU0x12
PauseVK_PAUSE0x13
Caps LockVK_CAPITAL0x14
IME Kana ModeVK_KANA0x15
IME Hangul ModeVK_HANGUL0x15
IME Junja ModeVK_JUNJA0x17
IME Final ModeVK_FINAL0x18
IME Hanja ModeVK_HANJA0x19
IME Kanji ModeVK_KANJI0x19
EscapeVK_ESCAPE0x1B
IME ConvertVK_CONVERT0x1C
IME NonConvertVK_NONCONVERT0x1D
IME AcceptVK_ACCEPT0x1E
IME Mode Change RequestVK_MODECHANGE0x1F
SpacebarVK_SPACE0x20
Page UpVK_PRIOR0x21
Page DownVK_NEXT0x22
EndVK_END0x23
HomeVK_HOME0x24
Left ArrowVK_LEFT0x25
Up ArrowVK_UP0x26
Right ArrowVK_RIGHT0x27
Down ArrowVK_DOWN0x28
SelectVK_SELECT0x29
PrintVK_PRINT0x2A
ExecuteVK_EXECUTE0x2B
Print ScreenVK_SNAPSHOT0x2C
InsertVK_INSERT0x2D
DeleteVK_DELETE0x2E
HelpVK_HELP0x2F

Number and Letter Keys

Key NameVK CodeHex Value
0-9 KeysVK_0 – VK_90x30 – 0x39
A-Z KeysVK_A – VK_Z0x41 – 0x5A

Windows and Application Keys

Key NameVK CodeHex Value
Left Windows KeyVK_LWIN0x5B
Right Windows KeyVK_RWIN0x5C
Applications KeyVK_APPS0x5D
Sleep KeyVK_SLEEP0x5F

Numeric Keypad (Numpad) Keys

Key NameVK CodeHex Value
Numpad 0VK_NUMPAD00x60
Numpad 1VK_NUMPAD10x61
Numpad 2VK_NUMPAD20x62
Numpad 3VK_NUMPAD30x63
Numpad 4VK_NUMPAD40x64
Numpad 5VK_NUMPAD50x65
Numpad 6VK_NUMPAD60x66
Numpad 7VK_NUMPAD70x67
Numpad 8VK_NUMPAD80x68
Numpad 9VK_NUMPAD90x69
Multiply (*)VK_MULTIPLY0x6A
Add (+)VK_ADD0x6B
SeparatorVK_SEPARATOR0x6C
Subtract (-)VK_SUBTRACT0x6D
Decimal (.)VK_DECIMAL0x6E
Divide (/)VK_DIVIDE0x6F

Function Keys (F1-F24)

Key NameVK CodeHex Value
F1 – F12VK_F1 – VK_F120x70 – 0x7B
F13 – F24VK_F13 – VK_F240x7C – 0x87

Lock Keys

Key NameVK CodeHex Value
Num LockVK_NUMLOCK0x90
Scroll LockVK_SCROLL0x91

Media Control and Special Keys

Key NameVK CodeHex Value
Left ShiftVK_LSHIFT0xA0
Right ShiftVK_RSHIFT0xA1
Left CtrlVK_LCONTROL0xA2
Right CtrlVK_RCONTROL0xA3
Left AltVK_LMENU0xA4
Right AltVK_RMENU0xA5
Browser BackVK_BROWSER_BACK0xA6
Browser ForwardVK_BROWSER_FORWARD0xA7
Browser RefreshVK_BROWSER_REFRESH0xA8
Browser StopVK_BROWSER_STOP0xA9
Browser SearchVK_BROWSER_SEARCH0xAA
Browser FavoritesVK_BROWSER_FAVORITES0xAB
Browser HomeVK_BROWSER_HOME0xAC
Volume MuteVK_VOLUME_MUTE0xAD
Volume DownVK_VOLUME_DOWN0xAE
Volume UpVK_VOLUME_UP0xAF
Media Next TrackVK_MEDIA_NEXT_TRACK0xB0
Media Previous TrackVK_MEDIA_PREV_TRACK0xB1
Media StopVK_MEDIA_STOP0xB2
Media Play/PauseVK_MEDIA_PLAY_PAUSE0xB3

OEM Keys (Special Characters)

Key NameVK CodeHex Value
OEM 1 (;)VK_OEM_10xBA
OEM Plus (+)VK_OEM_PLUS0xBB
OEM Comma (,)VK_OEM_COMMA0xBC
OEM Minus (-)VK_OEM_MINUS0xBD
OEM Period (.)VK_OEM_PERIOD0xBE
OEM 2 (/)VK_OEM_20xBF
OEM 3 (`~)VK_OEM_30xC0
OEM 4 ([)VK_OEM_40xDB
OEM 5 (|)VK_OEM_50xDC
OEM 6 (])VK_OEM_60xDD
OEM 7 (‘’/”)VK_OEM_70xDE

This is the full list of Virtual-Key codes used in Windows.

Conclusion

Virtual-Key Codes are essential for Windows applications that handle keyboard inputs. Whether you’re a developer working with key events or a gamer setting up key bindings, understanding these codes can improve efficiency and functionality.

Ads by Adsterra

Share. Twitter VKontakte Reddit Telegram WhatsApp Email Copy Link
Previous ArticleHow to Fix GTA 5 Enhanced Not Opening Error on PC
Next Article .txt to .xml Converter

Related Posts

Complete DirectX 12.2 (DX12 Ultimate) graphics cards of budget, mid-range, and high-end GPUs from NVIDIA RTX series, AMD RX and Intel Arc with ray tracing.
April 27, 2025

List of All DirectX 12.2 Graphics Cards: DX Ultimate GPUs

​Manage conflicting background software on Windows 11 by identifying, disabling, and troubleshooting apps to enhance system performance and resolve conflicts.​
March 10, 2025

How to Close Conflicting Background Softwares

Learn how to disable the NVIDIA GeForce Experience overlay in a few simple steps. Turn off the in-game overlay to improve FPS and prevent performance issues.
February 15, 2025

How to Disable NVIDIA GeForce Experience Overlay

Add A Comment
Leave A Reply Cancel Reply

Suggested Posts
Future of Sports Collectibles with Splinterlands, A Blockchain-based Game, How to Join, install, download and Requirements Splinter lands game review.

Splinterlands Review – A Blockchain-based Game

April 25, 2023
A guide on How to install, Join and use Nvidia's GeForce NOW Cloud Gaming Service for Free and Play Video Games Anywhere, Anytime!

GeForce NOW: The Ultimate Guide to Nvidia’s Cloud Gaming Service!

April 24, 2023
Experience Gaming Without Limits Top 3 Free Cloud Gaming Services for On-Demand Fun! Top 3 Free Cloud Gaming Services Play Games Anywhere, Anytime.

Top 3 Free Cloud Gaming Services – Play Games Anywhere, Anytime!

April 24, 2023
X (Twitter) Instagram Facebook YouTube

Topics

  • Game Mods
  • Gaming Guides
  • Tech Tutorials
  • PC Apps

Company

  • About Us
  • Disclaimer
  • Mods Policy
  • Contact Info

Services

  • Creators
  • Advertising
  • Game Support
  • Newsletters

Subscribe to Updates

Get the best weekly posts straight to your inbox!

© 2025 GameDecide. Powered by Adsterra.
  • Privacy Policy
  • Terms
  • DMCA
  • FAQ's
  • Accessibility

Type above and press Enter to search. Press Esc to cancel.