Tool to translate / encode Javascript Keycodes. Keycodes are numbers associated with keyboard keys handled by Javascript events.
Javascript Keycodes - dCode
Tag(s) : Substitution Cipher, Programming Language
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The JavaScript (JS) language associates with each key of the keyboard a numerical code named keycode. Here is the complete table:
8 | [BACKSPACE ⌫] | 9 | [TAB ↹] | 13 | [ENTER ⏎] | 16 | [SHIFT ⇧] |
---|---|---|---|---|---|---|---|
17 | [CTRL] | 18 | [ALT] | 19 | [PAUSE] | 20 | [CAPS LOCK 🔒] |
27 | [ESCAPE] | 32 | 33 | [PAGE UP ⇞] | 34 | [PAGE DOWN ⇟] | |
35 | [END] | 36 | [HOME ⇱] | 37 | [LEFT ARROW ←] | 38 | [UP ARROW ↑] |
39 | [RIGHT ARROW →] | 40 | [DOWN ARROW ↓] | 45 | [INSERT] | 46 | [DELETE] |
48 | 0 | 49 | 1 | 50 | 2 | 51 | 3 |
52 | 4 | 53 | 5 | 54 | 6 | 55 | 7 |
56 | 8 | 57 | 9 | 65 | A | 66 | B |
67 | C | 68 | D | 69 | E | 70 | F |
71 | G | 72 | H | 73 | I | 74 | J |
75 | K | 76 | L | 77 | M | 78 | N |
79 | O | 80 | P | 81 | Q | 82 | R |
83 | S | 84 | T | 85 | U | 86 | V |
87 | W | 88 | X | 89 | Y | 90 | Z |
91 | [LEFT WINDOWS ⊞] | 92 | [RIGHT WINDOWS ⊞] | 93 | [CONTEXT MENU] | 96 | [PAD 0] |
97 | [PAD 1] | 98 | [PAD 2] | 99 | [PAD 3] | 100 | [PAD 4] |
101 | [PAD 5] | 102 | [PAD 6] | 103 | [PAD 7] | 104 | [PAD 8] |
105 | [PAD 9] | 106 | * | 107 | + | 109 | - |
110 | . | 111 | / | 112 | [F1] | 113 | [F2] |
114 | [F3] | 115 | [F4] | 116 | [F5] | 117 | [F6] |
118 | [F7] | 119 | [F8] | 120 | [F9] | 121 | [F10] |
122 | [F11] | 123 | [F12] | 144 | [NUM LOCK] | 145 | [SCROLL LOCK] |
186 | ; | 187 | = | 188 | , | 189 | - |
190 | : | 191 | / | 192 | ` | 219 | ( |
220 | \ | 221 | ) | 222 | ' |
Uppercase letters and numbers have the same codes as the ASCII code.
Any series of keyboard keys (and therefore letters) can be encoded with numbers (the keycodes).
Example: JAVA is coded 74,65,86,65
Each code corresponds to a key, decryption is therefore a substitution of numbers by the corresponding key.
Example: '83,67,82,73,80,84 decrypts SCRIPT'
The letters are encoded by numbers between 65 and 90 (as ASCII code).
In a JavaScript code, the use of the keyboard keys is generally related to a key-typed event (keyDown or keyUp event) the presence of these keywords is a clue.
For obvious security reasons, it is impossible to type keyboard keys from Javascript.
dCode retains ownership of the "Javascript Keycodes" source code. Except explicit open source licence (indicated Creative Commons / free), the "Javascript Keycodes" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Javascript Keycodes" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Javascript Keycodes" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Javascript Keycodes" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Javascript Keycodes on dCode.fr [online website], retrieved on 2024-12-21,