Appends character at the end of the Pinput
void append(String s, int maxLength) { if (this.length == maxLength) return; this.text = '${this.text}$s'; this.moveCursorToEnd(); }