maxLength property
The maximum number of keys to allow in the history. This controls how many items from the history should be visible in the indicator. Items are discarded from the beginning of the history when the length of the history exceeds this value. If showAsHistory is true, the list of keys pressed will contain history of keys pressed up to maxLength distinct keys. This is not used if showAsHistory is false.
Implementation
final int maxLength;