Save a textbox entry without pressing any button

I did it but I’m not sure if it’s resource intensive