You could use any number of macro pads - the Keybow by Pimoroni is what I used pre-stream deck. Whether you should use one or not still depends on your IT policies.
I only ever used it for key presses to trigger things like Autohotkey macros, never mouse pointer movements.It is based on lua, so I don’t see why you wouldn’t be able to do it.
There are many devices for security research that work exactly like this: Products
You could probably even setup a Raspberry Pi to connect to your PC as a keyboard and proxy the connection from a Stream Deck.
Many folks will surely offer some perspective regarding caution. I personally throw a lot of caution to the wind… but that is not a recommendation. If you’re not using risky code and it is interfacing to the system as a keyboard, it is genuinely fairly low risk with lots of opportunity for reward in the form of increased productivity. Something for you to decide. All of these statements are with the premise that you’re storing absolutely zero company data on these devices.