What 3d mouse do you have? And what driver have you tried?
Space mouse pro. all of them I think. 10-5.15 is the most recent I have found that works (2019 + 2.7 only)
It does not work in 2020 and none of the other drivers seem to allow you to work in both 2020 and enscape simultaneously