This question already has an answer here:
I want to be able to like rotate to new desktops on ubuntu.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
I think what you are looking for is called "Desktop Cube". To enable it install
open the program, a warning will pop up becouse it is a powerfull tool but it is also quite easy to brake the system. Now under Desktop check the boxes of Desktop Cube and Rotate Cube.
if you click the buttons you can go into the appearance (Desktop Cube) and behavior and key bindings (Rotate Cube).