Implement script pause by Pause key pressing