Make applescript wait for user entry

Hi,
I am working on an applescript to interact with a website. Does anyone know how to make an applescript pause until the user keys something into a field on the webpage and then keys “return”?

Many thanks!

I’m just musing here… I’d assume the page address changes when the user hit’s that return key. Could you look for that? Safari should be able to return the current address, a simple loop with a delay and an address check should suffice.