This question already has an answer here:
After some apt upgrades my Wayland session seems broken, the mouse moves but I can't click on anything. I want to try if X.Org works, but as the UI is broken, I must change the session type in the text console.
How do I configure X.Org to start instead of Wayland when the desktop UI is unusable, in the text console?
I got a workaround by using the keyboard: type win,
log out and change focus with TAB. From there I could switch to X.Org using keyboard.