Hi all, I was also experiencing this issue but had no idea what “Setting Input Mode to Game and UI on all necessary points” meant, but was able to google a solution in Project Settings → Default Viewport Mouse Capture Mode → select “Capture Permanently Including Initial Mouse Down” instead of “Capture Permanently”.
I hope this helps someone else =)