List of key codes


Back to programming.


moderator    (2009-02-04)

moderator

List of key codes

Very useful to code events with javascript (see the example below to test the key "Return"), here is the list of all key codes.

if(window.event.type=="keypress" & window.event.keyCode==13) { }


Dec Oct Hex Binary Character

000 000 00 00000000 NUL (Null char.)
001 001 01 00000001 SOH (Start of Header)
002 002 02 00000010 STX (Start of Text)
003 003 03 00000011 ETX (End of Text)
004 004 04 00000100 EOT (End of Transmission)
005 005 05 00000101 ENQ (Enquiry)
006 006 06 00000110 ACK (Acknowledgment)
007 007 07 00000111 BEL (Bell)
008 010 08 00001000 BS (Backspace)
009 011 09 00001001 HT (Horizontal Tab)
010 012 0A 00001010 LF (Line Feed)
011 013 0B 00001011 VT (Vertical Tab)
012 014 0C 00001100 FF (Form Feed)
013 015 0D 00001101 CR (Carriage Return)
014 016 0E 00001110 SO (Shift Out)
015 017 0F 00001111 SI (Shift In)
016 020 10 00010000 DLE (Data Link Escape)
017 021 11 00010001 DC1 (XON)(Device Control 1)
018 022 12 00010010 DC2 (Device Control 2)
019 023 13 00010011 DC3 (XOFF)(Device Control 3)
020 024 14 00010100 DC4 (Device Control 4)
021 025 15 00010101 NAK (Negative Acknowledgement)
022 026 16 00010110 SYN (Synchronous Idle)
023 027 17 00010111 ETB (End of Trans. Block)
024 030 18 00011000 CAN (Cancel)
025 031 19 00011001 EM (End of Medium)
026 032 1A 00011010 SUB (Substitute)
027 033 1B 00011011 ESC (Escape)
028 034 1C 00011100 FS (File Separator)
029 035 1D 00011101 GS (Group Separator)
030 036 1E 00011110 RS (Request to Send)(Record Separator)
031 037 1F 00011111 US (Unit Separator)
032 040 20 00100000 SP (Space)
033 041 21 00100001 ! (exclamation mark)
034 042 22 00100010 " (double quote)
035 043 23 00100011 # (number sign)
036 044 24 00100100 $ (dollar sign)
037 045 25 00100101 % (percent)
038 046 26 00100110 & (ampersand)
039 047 27 00100111 ' (single quote)
040 050 28 00101000 ( (left opening parenthesis)
041 051 29 00101001 ) (right closing parenthesis)
042 052 2A 00101010 * (asterisk)
043 053 2B 00101011 + (plus)
044 054 2C 00101100 , (comma)
045 055 2D 00101101 - (minus or dash)
046 056 2E 00101110 . (dot)
047 057 2F 00101111 / (forward slash)
048 060 30 00110000 0
049 061 31 00110001 1
050 062 32 00110010 2
051 063 33 00110011 3
052 064 34 00110100 4
053 065 35 00110101 5
054 066 36 00110110 6
055 067 37 00110111 7
056 070 38 00111000 8
057 071 39 00111001 9
058 072 3A 00111010 : (colon)
059 073 3B 00111011 ; (semi-colon)
060 074 3C 00111100 < (less than sign)
061 075 3D 00111101 = (equal sign)
062 076 3E 00111110 > (greater than sign)
063 077 3F 00111111 ? (question mark)
064 100 40 01000000 @ (AT symbol)
065 101 41 01000001 A
066 102 42 01000010 B
067 103 43 01000011 C
068 104 44 01000100 D
069 105 45 01000101 E
070 106 46 01000110 F
071 107 47 01000111 G
072 110 48 01001000 H
073 111 49 01001001 I
074 112 4A 01001010 J
075 113 4B 01001011 K
076 114 4C 01001100 L
077 115 4D 01001101 M
078 116 4E 01001110 N
079 117 4F 01001111 O
080 120 50 01010000 P
081 121 51 01010001 Q
082 122 52 01010010 R
083 123 53 01010011 S
084 124 54 01010100 T
085 125 55 01010101 U
086 126 56 01010110 V
087 127 57 01010111 W
088 130 58 01011000 X
089 131 59 01011001 Y
090 132 5A 01011010 Z
091 133 5B 01011011 [ (left opening bracket)
092 134 5C 01011100 \ (back slash)
093 135 5D 01011101 ] (right closing bracket)
094 136 5E 01011110 ^ (caret cirumflex)
095 137 5F 01011111 _ (underscore)
096 140 60 01100000 `
097 141 61 01100001 a
098 142 62 01100010 b
099 143 63 01100011 c
100 144 64 01100100 d
101 145 65 01100101 e
102 146 66 01100110 f
103 147 67 01100111 g
104 150 68 01101000 h
105 151 69 01101001 i
106 152 6A 01101010 j
107 153 6B 01101011 k
108 154 6C 01101100 l
109 155 6D 01101101 m
110 156 6E 01101110 n
111 157 6F 01101111 o
112 160 70 01110000 p
113 161 71 01110001 q
114 162 72 01110010 r
115 163 73 01110011 s
116 164 74 01110100 t
117 165 75 01110101 u
118 166 76 01110110 v
119 167 77 01110111 w
120 170 78 01111000 x
121 171 79 01111001 y
122 172 7A 01111010 z
123 173 7B 01111011 { (left opening brace)
124 174 7C 01111100 | (vertical bar)
125 175 7D 01111101 } (right closing brace)
126 176 7E 01111110 ~ (tilde)
127 177 7F 01111111 DEL (delete)



(more options below)

*topame    (2010-06-05 19:05:54)
List of key codes

Thanks for the list, very useful!


*jonino    (2010-07-30 15:49:42)
13 years ago

i can not find the key code plz help me


See also


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 What is the list of KeyCodes for JavaScript KeyDown KeyPress and KeyUp events?
aspdotnetfaq > Faq/What is the
  1. possible kinds of client-side events triggered when a keyboard key is
  2. What is the list of KeyCodes for JavaScript KeyDown KeyPress and
 Windows Alt Key Codes
tlt.its.psu > suggestions/international/accents/codealt

on the right of the keyboard by pressing Num...
For questions or comments on this Web page, please contact...

 Keyboard Keys and Key Code Values -- Version 8
livedocs.adobe > flash/8/main/00001686

You may not have everything you need to view certain sections of...

 List of keycodes [Archive] - CodeGuru Forums
codeguru > forum/archive/index.php/t 15396

 List of Flash Key Codes | Freelance Flash Games News
freelanceflashgames > news/2009/04/21

Custom Mouse Cursor Tutorial in Flash Actionscript...
Want to Implement High Scores? Try One of These...

 Very Helpful Key Codes List - Dev Articles
forums.devarticles > javascript development 22/very helpful key codes

We cover the world of technology like no one else,...
Warburton's the largest independently owned bakery in the UK faced a...

 List of Virtual Key Codes
kbdedit > manual/low level vk

 GameSpot Forums - Key Finders - GameFAQs/Gamespot Friendly List of Alt Key Codes
gamespot > c64/action/keyfinders/show msgs.php?topic id=m 1 41325349&pid=575

I was wondering why you have without form and void in your sig and...
I've created this topic to list all Alt Key Codes which can be used...

 list of keycodes? - Flash Kit Community Forums
board.flashkit > board/showthread.php?t=420759

 Key Finders Message Board for Commodore 64 - GameFAQs
gamefaqs > boards/genmessage.php?board=575027&topic=41325349

 eBay Guides - The Sims Key Codes List for PC Playstation Nintendo DS
reviews.ebay > The Sims Key Codes

The Sims 2: Bon Voyage BonVoyage Expansion Pack PC...
Sims 2 Deluxe University Bon Voyage Glamour Family...
The Sims 2 Bon Voyage Expansion Pack (PC CD-ROM)...

 TB PRO keycodes and feature list | trixbox
trixbox > forums/trixbox pro/trixbox pro help/tb pro keycodes and feature

 Visual Basic :: VB KeyCodes
bigresource > VB VB KeyCodes QpPruvDq08

Working on a program, having two major prolems: First, my...
Does anyone know where I could get a list of all of the VB KeyCodes??...
I looked in my MSDN under keycodes and saw the ones for the...

 Keyboard Key Codes - Anyone know where I can find a list? - kirupaForum
kirupa > forum/showthread.php?t=158039

A 65 B 66 C 67 D 68 E 69 F 70 G 71 H 72 I 73 J 74...
or if you don't want to keep referring to this list, you can write a...
Am I right in thinking this refers to an American keyboard not...

 Brutus2D: list of Brutus2D virtual key codes
brutus2d.wikicomplete

 Wiimote d-pad works in Javascript or Flash games! | WiiNintendo
wiinintendo > 2006/12/27/wiimote d pad works in javascript or flash games

The Lounge | Re: Harry Potter and the Deathly Hallows movies...
City Interactive Announces Two New Adventure-Thrillers for the...

 Javascript Tips - Event Key Codes
webonweboff > tips/js/event key codes.aspx

 Google JS lib key codes list
mail archive > public webapi@w3.org/msg03637

 php-gtk2 Cookbook: How to display a list of key value pairs - Part 1? | Recipes
kksou > php gtk2/articles/display a

 Doug's AppleScripts for iTunes ♫ System Events, Key Code and Keystroke
dougscripts > itunes/itinfo/keycodes.php

OK, not really missing, but you may wish these scripts were already...
Not sure what happens when you download a script? Read this...

 Key Code Qualifier - Wikipedia, the free encyclopedia
en.wikipedia > wiki/KCQ

This page was last modified on 3 October 2010 at...

 Key code: Definition from Answers.com
answers > topic/key code

This entry is from Wikipedia, the leading user-contributed...

 Please Give Me A List Of All IE Keycodes? [Archive] - WebDeveloper.com
webdeveloper > forum/archive/index.php/t 56472

Originally posted by Exuro That's funny, because I always thought...
Originally posted by Willy Duitt I provided a little script he can...

 Eraserve AP - Keycodes or Key Codes
eraserve > infos/keycodes.asp

For the Data, the key code could allow you to merge the list...
Key codes are unique identifiers that can be applied to your...

 Accent Marks and Diacriticals, Alt Number Combinations, alt num, alt key
starr > is/type/altnum.htm

The four digit combinations can also be found in...
The foreign language and other symbols listed below are easy for...

 [links-list] eterm keycodes & mc clipboard
linuxfromscratch > pipermail/links

Recent xterm (XFree 4) implement such a feature too, but in a more...

 Virtual Key Codes
indigorose > webhelp/ams/Program Reference/Misc/Virtual Key Codes.htm

 Dict to "flat" list of (key,value)
mail.python > pipermail/python

 Universal Key Codes - xda-developers
forum.xda developers > showthread.php?t=268038

 Key Code - China Wholesale Supplier
lightinthebox > producttags/Key Code

9-Zones GSM Cell Phone Control Wireless Intelligent Security and...
Bluetooth GPS Data Logger With GPS Receiver-Data Logger-Photo Tagger...

 List of key bindings
help.eclipse > stable/topic/org.eclipse.platform.doc.user/reference/ref keybindi



Response  
 

Guest name   (option)     Register
Please sum : 5421 + three  




Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.