(It turned out to be a screen lock, but through my tests, I found that the mouse can only be limited to a frame, and the shortcut keys can also open other places on the desktop, so I changed it to mouse lock. Download it if you like it, there are no other functions, you don't need to install it, just three files.
mouse lock\dsmodal.dll
mouse lock\dsmodel.dll
Mouse Lock\ScreenLock.exe
.....)