Handles user key inputs to update the internal value.
@override bool handleKeyEvent(term.KeyEvent event);