Wait for key on error