@Steef I understand. I think I also faced this issue earlier. So in order to solve this, your textbox needs a companion 😁
Add a button to the screen which is positioned above the textbox on the screen order from top to bottom ( Y unit for button should be less than textbox). Hide that button as well behind the rectangle. Make sure the tab index of the button is -1. As fig shown below, The big rectangle is a textbox and small is a button.

Then at the end of the OnChange event of the textbox set the focus to the button eg SetFocus(Btn_ScanHidden);
I believe this will avoid the Keyboard been opened and also the next scan should work without tapping on the screen.
Do let me know the outcome. All the best!