Only wait for key press at end in debug build.