applescript retaining control of keyboard during script run

I am writing my first applescript so I’m sort of fumbling around here. I have a script that is triggering a javascript in Photoshop. There is a point during the photoshop script where user interaction is required. It seems that during the photoshop interaction, the user has mouse control but photoshop does not recognize keyboard actions. Is there a way to have the applescript get out of the way during it’s execution? I’ll post my code when I get back on a Mac in the morning.