Event Return or Delay in Function?

Functions cannot have latent events.

What you’re looking for is called a Macro.