Haha, this reminds me of something borderline stupid I did a while ago to have key names display on the gui key rebinder.

```
public static HashMap<Integer,String> keys = new HashMap<Integer,String>();
private static void addKey(String s,int x){
keys.put(x, s);
}
static{
addKey("UNKNOWN",0);
addKey("ESCAPE",1);
addKey("1",2);
addKey("2",3);
addKey("3",4);
addKey("4",5);
addKey("5",6);
addKey("6",7);
addKey("7",8);
addKey("8",9);
addKey("9",10);
addKey("0",11);
addKey("MINUS",12);
addKey("EQUALS",13);
addKey("BACK",14);
addKey("TAB",15);
addKey("Q",16);
addKey("W",17);
addKey("E",18);
addKey("R",19);
addKey("T",20);
addKey("Y",21);
addKey("U",22);
addKey("I",23);
addKey("O",24);
addKey("P",25);
addKey("LBRACKET",26);
addKey("RBRACKET",27);
addKey("RETURN",28);
addKey("LCONTROL",29);
addKey("A",30);
addKey("S",31);
addKey("D",32);
addKey("F",33);
addKey("G",34);
addKey("H",35);
addKey("J",36);
addKey("K",37);
addKey("L",38);
addKey("SEMICOLON",39);
addKey("APOSTROPHE",40);
addKey("GRAVE",41);
addKey("LSHIFT",42);
addKey("BACKSLASH",43);
addKey("Z",44);
addKey("X",45);
addKey("C",46);
addKey("V",47);
addKey("B",48);
addKey("N",49);
addKey("M",50);
addKey("COMMA",51);
addKey("PERIOD",52);
addKey("SLASH",53);
addKey("RSHIFT",54);
addKey("MULTIPLY",55);
addKey("LALT",56);
addKey("SPACE",57);
addKey("CAPITAL",58);
addKey("F1",59);
addKey("F2",60);
addKey("F3",61);
addKey("F4",62);
addKey("F5",63);
addKey("F6",64);
addKey("F7",65);
addKey("F8",66);
addKey("F9",67);
addKey("F10",68);
addKey("NUMLOCK",69);
addKey("SCROLL",70);
addKey("NUMPAD7",71);
addKey("NUMPAD8",72);
addKey("NUMPAD9",73);
addKey("SUBTRACT",74);
addKey("NUMPAD4",75);
addKey("NUMPAD5",76);
addKey("NUMPAD6",77);
addKey("ADD",78);
addKey("NUMPAD1",79);
addKey("NUMPAD2",80);
addKey("NUMPAD3",81);
addKey("NUMPAD0",82);
addKey("DECIMAL",83);
addKey("F11",87);
addKey("F12",88);
addKey("F13",100);
addKey("F14",101);
addKey("F15",102);
addKey("KANA",112);
addKey("CONVERT",121);
addKey("NOCONVERT",123);
addKey("YEN",125);
addKey("NUMPADEQUALS",141);
addKey("CIRCUMFLEX",144);
addKey("AT",145);
addKey("COLON",146);
addKey("UNDERLINE",147);
addKey("KANJI",148);
addKey("STOP",149);
addKey("AX",150);
addKey("UNLABELED",151);
addKey("NUMPADENTER",156);
addKey("RCONTROL",157);
addKey("NUMPADCOMMA",179);
addKey("DIVIDE",181);
addKey("SYSRQ",183);
addKey("RALT",184);
addKey("PAUSE",197);
addKey("HOME",199);
addKey("UP",200);
addKey("PRIOR",201);
addKey("PGUP",201);
addKey("LEFT",203);
addKey("RIGHT",205);
addKey("END",207);
addKey("DOWN",208);
addKey("NEXT",209);
addKey("PGDN",209);
addKey("INSERT",210);
addKey("DELETE",211);
addKey("LMETA",219);
addKey("RMETA",220);
addKey("APPS",221);
addKey("POWER",222);
addKey("SLEEP",223);
addKey("LAST",224);
}
```

I vaguely recall formating this with a regex, being as long as it is. If it’s stupid and it works