As i know you cannot use your MacBook Pro’s keyboard to control your Windows machine through spacedesk. Spacedesk is designed to extend or mirror your Windows desktop to other devices, but it does not support using the keyboard of a MacBook Pro to control a Windows machine.