String (int code) { if (!isNativeShortcutSymbolsDisabled()) { return switch (code) { case KeyEvent.VK_BACK_SPACE -> get(BACKSPACE, "Backspace"); case KeyEvent.VK_ESCAPE -> get(ESCAPE, "Escape"); case KeyEvent.VK_CAPS_LOCK -> get(CAPS_LOCK, "Caps Lock"); case KeyEvent.VK_TAB -> get(TAB, "Tab"); case KeyEvent.VK_SPACE -> "Space"; case KeyEvent.VK_DELETE -> get(DELETE, "Delete"); case KeyEvent.VK_HOME -> get(HOME, "Home"); case KeyEvent.VK_END -> get(END, "End"); case KeyEvent.VK_PAGE_UP -> get(PAGE_UP, "Page Up"); case KeyEvent.VK_PAGE_DOWN -> get(PAGE_DOWN, "Page Down"); case KeyEvent.VK_UP -> get(UP, "Up Arrow"); case KeyEvent.VK_DOWN -> get(DOWN, "Down Arrow"); case KeyEvent.VK_LEFT -> get(LEFT, "Left Arrow"); case KeyEvent.VK_RIGHT -> get(RIGHT, "Right Arrow"); case KeyEvent.VK_NUM_LOCK -> get(NUMBER_LOCK, "Num Lock"); case KeyEvent.VK_ENTER -> get(RETURN, "Return"); case KeyEvent.VK_NUMBER_SIGN -> get(NUM_PAD, "NumPad"); case KeyEvent.VK_MULTIPLY -> get(NUM_PAD, "NumPad") + " *"; case KeyEvent.VK_SUBTRACT, KeyEvent.VK_MINUS -> "-"; case KeyEvent.VK_ADD, KeyEvent.VK_PLUS -> "+"; case KeyEvent.VK_DIVIDE -> get(NUM_PAD, "NumPad") + "/"; case KeyEvent.VK_NUMPAD0 -> get(NUM_PAD, "NumPad") + "0"; case KeyEvent.VK_NUMPAD1 -> get(NUM_PAD, "NumPad") + "1"; case KeyEvent.VK_NUMPAD2 -> get(NUM_PAD, "NumPad") + "2"; case KeyEvent.VK_NUMPAD3 -> get(NUM_PAD, "NumPad") + "3"; case KeyEvent.VK_NUMPAD4 -> get(NUM_PAD, "NumPad") + "4"; case KeyEvent.VK_NUMPAD5 -> get(NUM_PAD, "NumPad") + "5"; case KeyEvent.VK_NUMPAD6 -> get(NUM_PAD, "NumPad") + "6"; case KeyEvent.VK_NUMPAD7 -> get(NUM_PAD, "NumPad") + "7"; case KeyEvent.VK_NUMPAD8 -> get(NUM_PAD, "NumPad") + "8"; case KeyEvent.VK_NUMPAD9 -> get(NUM_PAD, "NumPad") + "9"; case 0 -> "fn"; default -> KeyEvent.getKeyText(code); }; } return KeyEvent.getKeyText(code); }