Function Dialog.onKeyEvent

pass key event here; returns true if search text is updated and you can move selection using it

override bool onKeyEvent(
  KeyEvent event
);