Delphi keyboard key code

Source: Internet
Author: User
Constant name
Hexadecimal value
Decimal Value
Corresponding buttons
Vk_lbutton 01 1 Left mouse button
Vk_rbutton 02 2
Right-click
VK-CANCEL
03 3 CTRL break (usually not needed)
Vk_mbutton
04 4 Middle mouse buttons (three-click mouse)
Vk_back
08 8
Backspace key
Vk_tab
09 9
Tab key
Vk_clear
0c 12 Clear key (numeric keypad 5 when num lock is disabled)
Vk_return 0d 13 Enter
Vk_shift
10 16 Shift key
Vk_control
11 17
CTRL
Vk_menu
12 18
Alt key
Vk_pause
13 19
Pause key
Vk_capital
14 20
Capslock key
Vk_escape
1B 27 Ese key
Vk_space
20 32
Spacebar key
Vk_prior 21 33
Pageup key
Vk_next
22 34
Pagedomw key
Vk_end
23 35
End key
Vk_home
24 36
Home Key
Vk_left
25 37
Leftarrow)
Vk_up
26 38
UPARROW)
VK_RIGHT
27 39
RIGHTARROW key (→)
VK_DOWN
28 40
DOWNARROW)
VK_Select
29 41
Select key
VK_PRINT 2A 42  
VK_EXECUTE
2B 43 EXECUTE key
VK_SNAPSHOT
2C 44 Print Screen key (capture Screen)
VK_Insert
2D 45 Ins key (numeric keyboard 0 when Num Lock is disabled)
VK_Delete
2E 46 Del key (numeric keyboard when Num Lock is disabled .)
VK_HELP
2F 47 Help key
VK_0
30 48 0 Key
VK_1 31 49 1 key
VK_2 32 50 2 key
VK_3 33 51 3 key
VK_4 34 52 4 Key
VK_5 35 53 5 key
VK_6 36 54 6 keys
VK_7 37 55 Key 7
VK_8 38 56 8 Key
VK_9 39 57 9 Key
VK_A 41 65 Key
VK_ B 42 66 Key B
VK_C 43 67 C key
VK_D 44 68 D key
VK_E 45 69 Key E
VK_F 46 70 F key
VK_G 47 71 G key
VK_H 48 72 H key
VK_ I 49 73 I key
VK_J 4A 74 J key
VK_K 4B 75 K key
VK_L 4C 76 L key
VK_M 4D 77 M key
VK_N 4E 78 N key
Vk_o 4f 79 O key
Vk_p 50 80 P key
Vk_q 51 81 Q key
Vk_r 52 82 R key
Vk_s 53 83 S key
Vk_t 54 84 T key
Vk_u 55 85 U key
Vk_v 56 86 V Key
Vk_w 57 87 W key
Vk_x 58 88 X key
Vk_y 59 89 Y key
Vk_z 5A 90 Z key
Vk_numpad0
60 96 Number Key 0
Vk_numpad1 61 97 Key 1
Vk_numpad2 62 98 Number key 2
Vk_numpad3 62 99 Number key 3
Vk_numpad4 64 100 Number key 4
Vk_numpad5 65 101 Number key 5
Vk_numpad6 66 102 Number Key 6
Vk_numpad7 67 103 Key 7
Vk_numpad8 68 104 Number key 8
Vk_numpad9 69 105 Number key 9
Vk_multiply
6A 106 * Key on the numeric keyboard
VK_ADD
6B 107 Keys on the numeric keypad
VK_SEPARATOR
6C 108 Separator key
VK_SUBTRACT
6D 109 -Key on the numeric keyboard
VK_DECIMAL
6E 110 The. Key on the numeric keypad
VK_DIVIDE 6F 111 The/key on the numeric keyboard.
VK_F1
70 112 F1 key
VK_F2 71 113 F2 key
VK_F3 72 114 F3 key
VK_F4 73 115 F4 key
VK_F5 74 116 F5
VK_F6 75 117 F6 key
VK_F7 76 118 F7 key
VK_F8 77 119 F8
VK_F9 78 120 F9 key
VK_F10 79 121 F10 key
VK_F11 7A 122 F11 key
VK_F12 7B 123 F12 key
VK_NUMLOCK
90 144 NumLock key
VK_SCROLL
91 145 ScrollLock key
       
Not mentioned above: (all on the big keyboard)      
VK_LWIN   91 Left win key
VK_RWIN   92 Right win key
VK_APPS   93 Right-click the key on the left and right-click it. A shortcut menu is displayed.
    186 ; (Semicolon)
    187 = Key
    188 , Key (comma)
    189 -Key (minus sign)
    190 . Key (period)
    191 /Key
    192 'Key (under Esc)
    219 [Key
    220 \ Key
    221 ] Key
    222 'Key (quotation marks)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.