Key Identifiers

This topic lists the named keys that you can specify in the KeyboardEvent.key attribute in Windows Internet Explorer 9. The list is sorted alphabetically by name.

Note  The keycodes for 'NumPad0' through 'NumPad9' are not part of this set. Use the location attribute of the event to know if a key originated from the numeric keypad.

ConstantDescription
Accept

VK_ACCEPT. The Accept (Commit) key.

Add

VK_ADD. The NumPad Plus Sign (Ctrl+NumPadPlus) key.

Alt

VK_MENU, VK_LMENU, VK_RMENU. The Alt (Menu) key.

Apps

VK_APPS. The Application key.

Attn

VK_ATTN. The ATTN key.

Backspace

VK_BACKSPACE. The Backspace key.

BrowserBack

VK_BROWSER_BACK. The Browser Back key.

BrowserFavorites

VK_BROWSER_FAVORITES. The Browser Favorites key.

BrowserForward

VK_BROWSER_FORWARD. The Browser Forward key.

BrowserHome

VK_BROWSER_HOME. The Browser Home key.

BrowserRefresh

VK_BROWSER_REFRESH. The Browser Refresh key.

BrowserSearch

VK_BROWSER_SEARCH. The Browser Search key.

BrowserStop

VK_BROWSER_STOP. The Browser Stop key.

Cancel

VK_CANCEL. The Ctrl+Break key combination.

CapsLock

VK_CAPITAL. The Caps Lock (Capital) key.

Clear

VK_CLEAR, VK_OEM_CLEAR. The Clear (Ctrl+Numpad5) key.

Control

VK_CONTROL, VK_LCONTROL, VK_RCONTROL. The Control (Ctrl) key.

Convert

VK_CONVERT. The Convert key.

Crsel

VK_CRSEL. The Crsel key.

Decimal

VK_DECIMAL.

Del

VK_DELETE. The Delete key.

Divide

VK_DIVIDE. The NumPad divide (Ctrl+NumPadDivide) key.

Down

VK_DOWN. The Down Arrow key.

End

VK_END. The End key.

Enter

VK_RETURN. The Enter key.

EraseEof

VK_EREOF. The Erase EOF key.

Esc

VK_ESCAPE. The Esc key.

Execute

VK_EXECUTE. The Execute key.

Exsel

VK_EXSEL. The Exsel key.

F1

VK_F1. The F1 key.

F2

VK_F2. The F2 key.

F3

VK_F3. The F3 key.

F4

VK_F4. The F4 key.

F5

VK_F5. The F5 key.

F6

VK_F6. The F6 key.

F7

VK_F7. The F7 key.

F8

VK_F8. The F8 key.

F9

VK_F9. The F9 key.

F10

VK_F10. The F10 key.

F11

VK_F11. The F11 key.

F12

VK_F12. The F12 key.

F13

VK_F13. The F13 key.

F14

VK_F14. The F14 key.

F15

VK_F15. The F15 key.

F16

VK_F16. The F16 key.

F17

VK_F17. The F17 key.

F18

VK_F18. The F18 key.

F19

VK_F19. The F19 key.

F20

VK_F20. The F20 key.

F21

VK_F21. The F21 key.

F22

VK_F22. The F22 key.

F23

VK_F23. The F23 key.

F24

VK_F24. The F24 key.

HanjaMode

VK_HANJA. The Hanja (Korean characters) Mode key.

Help

VK_HELP. The Help key.

Home

VK_HOME. The Home key.

Insert

VK_INSERT. The Insert (Ins) key.

JunjaMode

VK_JUNJA. The Junja Mode key.

KanaMode

VK_KANA, VK_HANGUL. The Kana Mode (Kana Lock) key. Also used for Hangul (Korean characters).

KanjiMode

VK_KANJI. The Kanji (Japanese name for ideographic characters of Chinese origin) Mode key.

LaunchApplication1

VK_LAUNCH_APP1. The Start Application One key.

LaunchApplication2

VK_LAUNCH_APP2. The Start Application Two key.

LaunchMail

VK_LAUNCH_MAIL. The Start Mail key.

Left

VK_LEFT. The Left Arrow key.

MediaNextTrack

VK_MEDIA_NEXT_TRACK. The Media Next Track key.

MediaPlayPause

VK_MEDIA_PLAY_PAUSE. The Media Play Pause key.

MediaPreviousTrack

VK_MEDIA_PREVIOUS_TRACK. The Media Previous Track key.

MediaStop

VK_MEDIA_STOP. The Media Stop key.

ModeChange

VK_MODECHANGE. The Mode Change key.

Multiply

VK_MULTIPLY. The NumPad Multiply (Ctrl+NumPadMult) key.

Nonconvert

VK_NONCONVERT. The Nonconvert (Don't Convert) key.

NumLock

VK_NUMLOCK. The Num Lock key.

PageDown

VK_NEXT. The Page Down (Next) key.

PageUp

VK_PRIOR. The Page Up key.

Pause

VK_PAUSE. The Pause key.

Play

VK_PLAY. The Play key.

PrintScreen

VK_SNAPSHOT. The Print Screen (PrintScrn, SnapShot) key.

Right

VK_RIGHT. The Right Arrow key.

Scroll

VK_SCROLL. The Scroll Lock key.

Select

VK_SELECT. The Select key.

SelectMedia

VK_LAUNCH_MEDIA_SELECT. The Select Media key.

Separator

VK_SEPARATOR. The NumPad Separator key.

Shift

VK_SHIFT, VK_LSHIFT, VK_RSHIFT. The Shift key.

Spacebar

VK_SPACE. The Space (Spacebar) key.

Subtract

VK_SUBTRACT. The NumPad Minus (Ctrl+NumPadMinus) key.

Tab

VK_TAB. The Horizontal Tabulation (Tab) key.

Up

VK_UP. The Up Arrow key.

VolumeDown

VK_VOLUME_DOWN. The Volume Down key.

VolumeMute

VK_VOLUME_MUTE. The Volume Mute key.

VolumeUp

VK_VOLUME_UP. The Volume Up key.

Win

VK_LWIN, VK_RWIN. The Windows Logo key.

Zoom

VK_ZOOM. The Zoom key.

Requirements

 

 

Show:
© 2014 Microsoft