If you’re not on a laptop, can you try plugging your mouse and keyboard on a different computer and test thingsthere? Just to see if it’s not your peripherals that are broken all of a sudden?
Martin says it may be hardware breaking, but it’s hard to diagnose from a distance.
Maybe even try on a couple older Blender versions, to really make sure is not a recent bug that is persisting?