Active input field: Is it possible to run an InputScript by pressing the keyboard Enter button when the cursor is on a particular input field?

Yes, use

On Enter process="xxx.txt"

and in "xxx.txt" query the variable V[_cursorfieldname] to determine the name of the active input field.