code: private static Keys getKeyFromUnicode(char key) {
      for (Keys unicodeKey : Keys.values()) {
        if (unicodeKey.charAt(0) == key) {
          return unicodeKey;
        }
      }
  
      return null;
    }
docs: Get the special key representation, {@link Keys}, of the supplied character if there is one. If
  there is no special key tied to this character, null will be returned.
  
  @param key unicode character code
  @return special key linked to the character code, or null if character is not a special key