Handle text input via ui.text action.