I don’t believe there’s a way to lock the cursor in Safari, meaning mouse input wouldn’t work, unfortunately. Keyboard controls work in every web app (emulators, Sonic 3 AIR) I’ve tried though. They probably don’t want to let you use keyboard controls if the mouse doesn’t work though.
Hoping there’s an update for this soon though since Microsoft announced mouse and keyboard support coming to xcloud soon.