in reply to Handle Ctrl-C on Windows
See ctrl + c on Win32 (signal handling), Term::ReadKey or use Super Search/your search engine of choice to find similar posts.