Citrix Workspace app and Magic Keyboard
Per questions raised in https://discussions.apple.com/thread/251363234, right click and scrolling are not functioning, while left click and double click are functioning.
The above thread is too old that Apple would not allow me to reply to it.
I would like to post an answer that if you find above behavior on your device, check if <Citrix MultiTouch Redirection Service> is running in your virtual machine (presumably not).
Start this service, disconnect the session and reconnect, then right click and scrolling should be back :)