You can use events on the text box if you want to update an attribute. Also see https://docs.mendix.com/refguide/text-box/#events.
In line with Anthony's answer:
Add a OnChange event to your input field and make it call a Nanoflow.
In this nanoflow, set the value of the other attribute to the value of the field.