added an asynchronous "wait for enter"