private String escape(Character character) {
    if (character == null) {
      return "null";
    }

    switch (character) {
      case '\n':
        return "\\n";

      case '\b':
        return "\\b";

      case '\t':
        return "\\t";

      default:
        return character.toString();
    }
  }
Represents the user pressing a key on the keyboard.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/terminal/KeyPress.java