Scripted Pipeline String parameter starts build when enter pressed

I have a scripted build that uses a string parameter and an active choice parameter. Problem that I have is that the active parameter does not get set when a change is made in the string parameter and the user pressesd in the string parameter field.
IS there a way to disable starting the build when is pressed in the field and only when the ‘build’ button is pressed?