Go to next object using...
I have a few scripts that use triggers. For example, I have a search script that "OnObjectValidate" will do its thing. By OnObjectValidate, one can enter text to search for and then press Enter. I set go to next object using Return/Enter, so that when someone does press Enter, the script works.
My problem is this. When Enter is pressed, it will move to a portal that I have set up that if you click on objectclick, it will run a script also. So in a sense, it is going to the "next object" that I don't want it to go to.
I know there is a quick fix, by moving the objects around, but how is it that I control what the "next object" actually is?