Such „mouse cage“ functionality is not supported by spacedesk. There are various 3rd party utilities to do this. Just google for something like „mouse cursor lock software for Windows 10“. Please let us know which one of these tools works best for you. Other users are ocasionally asking similar questions.