code: private static KeyStroke[] toKeyStrokes(int... keyCodes) {
          KeyStroke[] keyStrokes = null;
  
          if (keyCodes != null) {
              keyStrokes = new KeyStroke[keyCodes.length];
              for (int i = 0; i < keyCodes.length; i++) {
                  keyStrokes[i] = KeyStroke.getKeyStroke(keyCodes[i], 0);
              }
          }
  
          return keyStrokes;
      }
docs: Converts the specified array of key codes in an array of key strokes.
  
  @param keyCodes Array of key codes to be converted.
  
  @return Array of keystrokes resulting form the conversion.