An optional key event handler callback. Returns true if prompt is completed.
final bool Function(term.KeyEvent event)? onKeyEvent;