Skip to content

Instantly share code, notes, and snippets.

@Varun-garg
Created September 4, 2021 16:04
Show Gist options
  • Save Varun-garg/5afc61e2f9be8c3f4886aaaaf6ff7bcd to your computer and use it in GitHub Desktop.
Save Varun-garg/5afc61e2f9be8c3f4886aaaaf6ff7bcd to your computer and use it in GitHub Desktop.
atset3 key bindings - numeric values are those defined by the AT keyboard controller, set 3 (PS/2 compatible).
{
"KEY_F1": "7 (0x7)",
"KEY_ESC": "8 (0x8)",
"KEY_HELP": "9 (0x9)",
"KEY_STOP": "10 (0xa)",
"KEY_AGAIN": "11 (0xb)",
"KEY_PROPS": "12 (0xc)",
"KEY_TAB": "13 (0xd)",
"KEY_GRAVE": "14 (0xe)",
"KEY_F2": "15 (0xf)",
"KEY_UNDO": "16 (0x10)",
"KEY_LEFTCTRL": "17 (0x11)",
"KEY_LEFTSHIFT": "18 (0x12)",
"KEY_102ND": "19 (0x13)",
"KEY_CAPSLOCK": "20 (0x14)",
"KEY_Q": "21 (0x15)",
"KEY_1": "22 (0x16)",
"KEY_F3": "23 (0x17)",
"KEY_COPY": "24 (0x18)",
"KEY_LEFTALT": "25 (0x19)",
"KEY_Z": "26 (0x1a)",
"KEY_S": "27 (0x1b)",
"KEY_A": "28 (0x1c)",
"KEY_W": "29 (0x1d)",
"KEY_2": "30 (0x1e)",
"KEY_F4": "31 (0x1f)",
"KEY_OPEN": "32 (0x20)",
"KEY_C": "33 (0x21)",
"KEY_X": "34 (0x22)",
"KEY_D": "35 (0x23)",
"KEY_E": "36 (0x24)",
"KEY_4": "37 (0x25)",
"KEY_3": "38 (0x26)",
"KEY_F5": "39 (0x27)",
"KEY_PASTE": "40 (0x28)",
"KEY_SPACE": "41 (0x29)",
"KEY_V": "42 (0x2a)",
"KEY_F": "43 (0x2b)",
"KEY_T": "44 (0x2c)",
"KEY_R": "45 (0x2d)",
"KEY_5": "46 (0x2e)",
"KEY_F6": "47 (0x2f)",
"KEY_FIND": "48 (0x30)",
"KEY_N": "49 (0x31)",
"KEY_B": "50 (0x32)",
"KEY_H": "51 (0x33)",
"KEY_G": "52 (0x34)",
"KEY_Y": "53 (0x35)",
"KEY_6": "54 (0x36)",
"KEY_F7": "55 (0x37)",
"KEY_CUT": "56 (0x38)",
"KEY_RIGHTALT": "57 (0x39)",
"KEY_M": "58 (0x3a)",
"KEY_J": "59 (0x3b)",
"KEY_U": "60 (0x3c)",
"KEY_7": "61 (0x3d)",
"KEY_8": "62 (0x3e)",
"KEY_F8": "63 (0x3f)",
"KEY_COMMA": "65 (0x41)",
"KEY_K": "66 (0x42)",
"KEY_I": "67 (0x43)",
"KEY_O": "68 (0x44)",
"KEY_0": "69 (0x45)",
"KEY_9": "70 (0x46)",
"KEY_F9": "71 (0x47)",
"KEY_DOT": "73 (0x49)",
"KEY_KPSLASH": "74 (0x4a)",
"KEY_L": "75 (0x4b)",
"KEY_SEMICOLON": "76 (0x4c)",
"KEY_P": "77 (0x4d)",
"KEY_KPMINUS": "78 (0x4e)",
"KEY_F10": "79 (0x4f)",
"KEY_APOSTROPHE": "82 (0x52)",
"KEY_LEFTBRACE": "84 (0x54)",
"KEY_EQUAL": "85 (0x55)",
"KEY_F11": "86 (0x56)",
"KEY_SYSRQ": "87 (0x57)",
"KEY_RIGHTCTRL": "88 (0x58)",
"KEY_RIGHTSHIFT": "89 (0x59)",
"KEY_ENTER": "90 (0x5a)",
"KEY_RIGHTBRACE": "91 (0x5b)",
"KEY_BACKSLASH": "92 (0x5c)",
"KEY_YEN": "93 (0x5d)",
"KEY_F12": "94 (0x5e)",
"KEY_SCROLLLOCK": "95 (0x5f)",
"KEY_DOWN": "96 (0x60)",
"KEY_LEFT": "97 (0x61)",
"KEY_PAUSE": "98 (0x62)",
"KEY_UP": "99 (0x63)",
"KEY_DELETE": "100 (0x64)",
"KEY_END": "101 (0x65)",
"KEY_BACKSPACE": "102 (0x66)",
"KEY_INSERT": "103 (0x67)",
"KEY_KP1": "105 (0x69)",
"KEY_RIGHT": "106 (0x6a)",
"KEY_KP4": "107 (0x6b)",
"KEY_KP7": "108 (0x6c)",
"KEY_PAGEDOWN": "109 (0x6d)",
"KEY_HOME": "110 (0x6e)",
"KEY_PAGEUP": "111 (0x6f)",
"KEY_KP0": "112 (0x70)",
"KEY_KPDOT": "113 (0x71)",
"KEY_KP2": "114 (0x72)",
"KEY_KP5": "115 (0x73)",
"KEY_KP6": "116 (0x74)",
"KEY_KP8": "117 (0x75)",
"KEY_NUMLOCK": "118 (0x76)",
"KEY_KPENTER": "121 (0x79)",
"KEY_KP3": "122 (0x7a)",
"KEY_KPPLUS": "124 (0x7c)",
"KEY_KP9": "125 (0x7d)",
"KEY_KPASTERISK": "126 (0x7e)",
"KEY_F13": "127 (0x7f)",
"KEY_F14": "128 (0x80)",
"KEY_F15": "129 (0x81)",
"KEY_F16": "130 (0x82)",
"KEY_F17": "131 (0x83)",
"KEY_MUHENKAN": "133 (0x85)",
"KEY_HENKAN": "134 (0x86)",
"KEY_KATAKANAHIRAGANA": "135 (0x87)",
"KEY_LEFTMETA": "139 (0x8b)",
"KEY_RIGHTMETA": "140 (0x8c)",
"KEY_COMPOSE": "141 (0x8d)",
"KEY_MACRO": "142 (0x8e)",
"KEY_MENU": "145 (0x91)",
"KEY_NEXTSONG": "147 (0x93)",
"KEY_PREVIOUSSONG": "148 (0x94)",
"KEY_VOLUMEUP": "149 (0x95)",
"KEY_SCREENLOCK": "150 (0x96)",
"KEY_HOMEPAGE": "151 (0x97)",
"KEY_STOPCD": "152 (0x98)",
"KEY_CLOSECD": "154 (0x9a)",
"KEY_CYCLEWINDOWS": "155 (0x9b)",
"KEY_MUTE": "156 (0x9c)",
"KEY_VOLUMEDOWN": "157 (0x9d)",
"KEY_RECORD": "158 (0x9e)",
"KEY_REWIND": "159 (0x9f)",
"KEY_PROG1": "160 (0xa0)",
"KEY_PROG2": "161 (0xa1)",
"KEY_XFER": "162 (0xa2)",
"KEY_CALC": "163 (0xa3)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment