local keycodemap =
{
	["A"] = "KEYCODE_A",
	["B"] = "KEYCODE_B",
	["C"] = "KEYCODE_C",
	["D"] = "KEYCODE_D",
	["E"] = "KEYCODE_E",
	["F"] = "KEYCODE_F",
	["G"] = "KEYCODE_G",
	["H"] = "KEYCODE_H",
	["I"] = "KEYCODE_I",
	["J"] = "KEYCODE_J",
	["K"] = "KEYCODE_K",
	["L"] = "KEYCODE_L",
	["M"] = "KEYCODE_M",
	["N"] = "KEYCODE_N",
	["O"] = "KEYCODE_O",
	["P"] = "KEYCODE_P",
	["Q"] = "KEYCODE_Q",
	["R"] = "KEYCODE_R",
	["S"] = "KEYCODE_S",
	["T"] = "KEYCODE_T",
	["U"] = "KEYCODE_U",
	["V"] = "KEYCODE_V",
	["W"] = "KEYCODE_W",
	["X"] = "KEYCODE_X",
	["Y"] = "KEYCODE_Y",
	["Z"] = "KEYCODE_Z",
	["0"] = "KEYCODE_0",
	["1"] = "KEYCODE_1",
	["2"] = "KEYCODE_2",
	["3"] = "KEYCODE_3",
	["4"] = "KEYCODE_4",
	["5"] = "KEYCODE_5",
	["6"] = "KEYCODE_6",
	["7"] = "KEYCODE_7",
	["8"] = "KEYCODE_8",
	["9"] = "KEYCODE_9",
	["F1"] = "KEYCODE_F1",
	["F2"] = "KEYCODE_F2",
	["F3"] = "KEYCODE_F3",
	["F4"] = "KEYCODE_F4",
	["F5"] = "KEYCODE_F5",
	["F6"] = "KEYCODE_F6",
	["F7"] = "KEYCODE_F7",
	["F8"] = "KEYCODE_F8",
	["F9"] = "KEYCODE_F9",
	["F10"] = "KEYCODE_F10",
	["F11"] = "KEYCODE_F11",
	["F12"] = "KEYCODE_F12",
	["F13"] = "KEYCODE_F13",
	["F14"] = "KEYCODE_F14",
	["F15"] = "KEYCODE_F15",
	["F16"] = "KEYCODE_F16",
	["F17"] = "KEYCODE_F17",
	["F18"] = "KEYCODE_F18",
	["F19"] = "KEYCODE_F19",
	["F20"] = "KEYCODE_F20",
	["ESC"] = "KEYCODE_ESC",
	["~"] = "KEYCODE_TILDE",
	["-"] = "KEYCODE_MINUS",
	["="] = "KEYCODE_EQUALS",
	["BS"] = "KEYCODE_BACKSPACE",
	["TAB"] = "KEYCODE_TAB",
	["["] = "KEYCODE_OPENBRACE",
	["]"] = "KEYCODE_CLOSEBRACE",
	["ENTER"] = "KEYCODE_ENTER",
	[":"] = "KEYCODE_COLON",
	["'"] = "KEYCODE_QUOTE",
	["/"] = "KEYCODE_BACKSLASH",
	["/_2"] = "KEYCODE_BACKSLASH2",
	[","] = "KEYCODE_COMMA",
	["."] = "KEYCODE_STOP",
	["/"] = "KEYCODE_SLASH",
	["SPC"] = "KEYCODE_SPACE",
	["INSERT"] = "KEYCODE_INSERT",
	["DEL"] = "KEYCODE_DEL",
	["HOME"] = "KEYCODE_HOME",
	["END"] = "KEYCODE_END",
	["PGUP"] = "KEYCODE_PGUP",
	["PGDN"] = "KEYCODE_PGDN",
	["LEFT"] = "KEYCODE_LEFT",
	["RIGHT"] = "KEYCODE_RIGHT",
	["UP"] = "KEYCODE_UP",
	["DOWN"] = "KEYCODE_DOWN",
	["0_PAD"] = "KEYCODE_0_PAD",
	["1_PAD"] = "KEYCODE_1_PAD",
	["2_PAD"] = "KEYCODE_2_PAD",
	["3_PAD"] = "KEYCODE_3_PAD",
	["4_PAD"] = "KEYCODE_4_PAD",
	["5_PAD"] = "KEYCODE_5_PAD",
	["6_PAD"] = "KEYCODE_6_PAD",
	["7_PAD"] = "KEYCODE_7_PAD",
	["8_PAD"] = "KEYCODE_8_PAD",
	["9_PAD"] = "KEYCODE_9_PAD",
	["/_PAD"] = "KEYCODE_SLASH_PAD",
	["*"] = "KEYCODE_ASTERISK",
	["-_PAD"] = "KEYCODE_MINUS_PAD",
	["+_PAD"] = "KEYCODE_PLUS_PAD",
	["DEL_PAD"] = "KEYCODE_DEL_PAD",
	["ENTER_PAD"] = "KEYCODE_ENTER_PAD",
	["BS_PAD"] = "KEYCODE_BS_PAD",
	["TAB_PAD"] = "KEYCODE_TAB_PAD",
	["00_PAD"] = "KEYCODE_00_PAD",
	["000_PAD"] = "KEYCODE_000_PAD",
	["PRTSCR"] = "KEYCODE_PRTSCR",
	["PAUSE"] = "KEYCODE_PAUSE",
	["LSHFT"] = "KEYCODE_LSHIFT",
	["RSHFT"] = "KEYCODE_RSHIFT",
	["LCTRL"] = "KEYCODE_LCONTROL",
	["RCTRL"] = "KEYCODE_RCONTROL",
	["LALT"] = "KEYCODE_LALT",
	["RALT"] = "KEYCODE_RALT",
	["SCRLOCK"] = "KEYCODE_SCRLOCK",
	["NUMLOCK"] = "KEYCODE_NUMLOCK",
	["CAPSLOCK"] = "KEYCODE_CAPSLOCK",
	["LWIN"] = "KEYCODE_LWIN",
	["RWIN"] = "KEYCODE_RWIN",
	["MENU"] = "KEYCODE_MENU",
	["CANCEL"] = "KEYCODE_CANCEL",
	["KEYCODE_A"] = "A",
	["KEYCODE_B"] = "B",
	["KEYCODE_C"] = "C",
	["KEYCODE_D"] = "D",
	["KEYCODE_E"] = "E",
	["KEYCODE_F"] = "F",
	["KEYCODE_G"] = "G",
	["KEYCODE_H"] = "H",
	["KEYCODE_I"] = "I",
	["KEYCODE_J"] = "J",
	["KEYCODE_K"] = "K",
	["KEYCODE_L"] = "L",
	["KEYCODE_M"] = "M",
	["KEYCODE_N"] = "N",
	["KEYCODE_O"] = "O",
	["KEYCODE_P"] = "P",
	["KEYCODE_Q"] = "Q",
	["KEYCODE_R"] = "R",
	["KEYCODE_S"] = "S",
	["KEYCODE_T"] = "T",
	["KEYCODE_U"] = "U",
	["KEYCODE_V"] = "V",
	["KEYCODE_W"] = "W",
	["KEYCODE_X"] = "X",
	["KEYCODE_Y"] = "Y",
	["KEYCODE_Z"] = "Z",
	["KEYCODE_0"] = "0",
	["KEYCODE_1"] = "1",
	["KEYCODE_2"] = "2",
	["KEYCODE_3"] = "3",
	["KEYCODE_4"] = "4",
	["KEYCODE_5"] = "5",
	["KEYCODE_6"] = "6",
	["KEYCODE_7"] = "7",
	["KEYCODE_8"] = "8",
	["KEYCODE_9"] = "9",
	["KEYCODE_F1"] = "F1",
	["KEYCODE_F2"] = "F2",
	["KEYCODE_F3"] = "F3",
	["KEYCODE_F4"] = "F4",
	["KEYCODE_F5"] = "F5",
	["KEYCODE_F6"] = "F6",
	["KEYCODE_F7"] = "F7",
	["KEYCODE_F8"] = "F8",
	["KEYCODE_F9"] = "F9",
	["KEYCODE_F10"] = "F10",
	["KEYCODE_F11"] = "F11",
	["KEYCODE_F12"] = "F12",
	["KEYCODE_F13"] = "F13",
	["KEYCODE_F14"] = "F14",
	["KEYCODE_F15"] = "F15",
	["KEYCODE_F16"] = "F16",
	["KEYCODE_F17"] = "F17",
	["KEYCODE_F18"] = "F18",
	["KEYCODE_F19"] = "F19",
	["KEYCODE_F20"] = "F20",
	["KEYCODE_ESC"] = "ESC",
	["KEYCODE_TILDE"] = "~",
	["KEYCODE_MINUS"] = "-",
	["KEYCODE_EQUALS"] = "=",
	["KEYCODE_BACKSPACE"] = "BS",
	["KEYCODE_TAB"] = "TAB",
	["KEYCODE_OPENBRACE"] = "[",
	["KEYCODE_CLOSEBRACE"] = "]",
	["KEYCODE_ENTER"] = "ENTER",
	["KEYCODE_COLON"] = ":",
	["KEYCODE_QUOTE"] = "'",
	["KEYCODE_BACKSLASH"] = "/",
	["KEYCODE_BACKSLASH2"] = "/_2",
	["KEYCODE_COMMA"] = ",",
	["KEYCODE_STOP"] = ".",
	["KEYCODE_SLASH"] = "/",
	["KEYCODE_SPACE"] = "SPC",
	["KEYCODE_INSERT"] = "INSERT",
	["KEYCODE_DEL"] = "DEL",
	["KEYCODE_HOME"] = "HOME",
	["KEYCODE_END"] = "END",
	["KEYCODE_PGUP"] = "PGUP",
	["KEYCODE_PGDN"] = "PGDN",
	["KEYCODE_LEFT"] = "LEFT",
	["KEYCODE_RIGHT"] = "RIGHT",
	["KEYCODE_UP"] = "UP",
	["KEYCODE_DOWN"] = "DOWN",
	["KEYCODE_0_PAD"] = "0_PAD",
	["KEYCODE_1_PAD"] = "1_PAD",
	["KEYCODE_2_PAD"] = "2_PAD",
	["KEYCODE_3_PAD"] = "3_PAD",
	["KEYCODE_4_PAD"] = "4_PAD",
	["KEYCODE_5_PAD"] = "5_PAD",
	["KEYCODE_6_PAD"] = "6_PAD",
	["KEYCODE_7_PAD"] = "7_PAD",
	["KEYCODE_8_PAD"] = "8_PAD",
	["KEYCODE_9_PAD"] = "9_PAD",
	["KEYCODE_SLASH_PAD"] = "/_PAD",
	["KEYCODE_ASTERISK"] = "*",
	["KEYCODE_MINUS_PAD"] = "-_PAD",
	["KEYCODE_PLUS_PAD"] = "+_PAD",
	["KEYCODE_DEL_PAD"] = "DEL_PAD",
	["KEYCODE_ENTER_PAD"] = "ENTER_PAD",
	["KEYCODE_BS_PAD"] = "BS_PAD",
	["KEYCODE_TAB_PAD"] = "TAB_PAD",
	["KEYCODE_00_PAD"] = "00_PAD",
	["KEYCODE_000_PAD"] = "000_PAD",
	["KEYCODE_PRTSCR"] = "PRTSCR",
	["KEYCODE_PAUSE"] = "PAUSE",
	["KEYCODE_LSHIFT"] = "LSHFT",
	["KEYCODE_RSHIFT"] = "RSHFT",
	["KEYCODE_LCONTROL"] = "LCTRL",
	["KEYCODE_RCONTROL"] = "RCTRL",
	["KEYCODE_LALT"] = "LALT",
	["KEYCODE_RALT"] = "RALT",
	["KEYCODE_SCRLOCK"] = "SCRLOCK",
	["KEYCODE_NUMLOCK"] = "NUMLOCK",
	["KEYCODE_CAPSLOCK"] = "CAPSLOCK",
	["KEYCODE_LWIN"] = "LWIN",
	["KEYCODE_RWIN"] = "RWIN",
	["KEYCODE_MENU"] = "MENU",
	["KEYCODE_CANCEL"] = "CANCEL"
}

return keycodemap
