You can try to enter the command ``` wmctrl -s 5 ``` to go to workspace 5, for instance. This works with static workspaces on Ubuntu 22.04.