How to switch monitor screens using keyboard shortcuts?
Solution 1:
If I understood you correctly, you need to move a window to the second screen and backwards.
In this case the answer is Shift+Super+Left or Shift+Super+Right for the opposite.
You can find more shortcuts in the Useful keyboard shortcuts section of the official Ubuntu documentation.