Or if you prefer a one-liner:
Global keynames$[]=["", "", "", "", "", "", "", "", "Backspace", "Tab", "", "", "Clear", "Enter", "Return", "", "", "", "", "Pause", "Caps Lock", "", "", "", "", "", "", "Escape", "", "", "", "", "Space", "Page Up", "Page Down", "End", "Home", "Cursor (Left)", "Cursor (Up)", "Cursor (Right)", "Cursor (Down)", "Select", "Print", "Execute", "Screen", "Insert", "Delete", "Help", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "", "", "", "", "", "", "", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "Sys key (Left)", "Sys key (Right)", "", "", "", "Numpad 0", "Numpad 1", "Numpad 2", "Numpad 3", "Numpad 4", "Numpad 5", "Numpad 6", "Numpad 7", "Numpad 8", "Numpad 9", "Numpad *", "Numpad +", "", "Numpad -", "Numpad .", "Numpad /", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Num Lock", "Scroll Lock", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Shift (Left)", "Shift (Right)", "Control (Left)", "Control (Right)", "Alt key (Left)", "Alt key (Right)", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Semi-colon", "Equals", "Comma", "Minus", "Period", "Slash", "Tilde", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Bracket (Open)", "", "Bracket (Close)", "Quote", "", "", "", "Backslash", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
Global mousenames$[]=["Mouse Left","Mouse Right","Mouse Middle"]
I actually checked this one a few times and got some that were missing in the documentation, and I made a
spreadsheet.