Hello Muhammed,
Have you check out the events on the input field:
They help you to execute logic after you change the value of the field or when you enter information, in your case i think you can use the on change event
See also the doculentation 3.9 events to choose what is suitable for you:
https://docs.mendix.com/refguide/text-box/
Hope this helps!
Good luck!