private void initState() {
    parseState = ParseState.START;
    param1 = 0;
    param2 = 0;
  }
This generates {@link KeyPress} objects from the given input stream and offers them to the given
queue.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/terminal/impl/KeyPressGenerator.java