The UI is designed (and battle-tested) to be controlled mainly via keyboard. Mouse is mostly useless (but somewhat supported for non-power users).
You definitely shall not toggle mouse/kb in an infinite fashion; stick with the keyboard control instead - use arrow keys for navigating around.