This code will block all mouse and keyboard actions until you press a key combination Ctrl + -.
Personally, I use this code to prevent deleting something while cleaning up the mouse and keyboard.
You can build your own executables with pyinstall.
Or use this one for Windows 10 (64 bit): WINDOWS_64_BIT.
See virustotal.com check.