macosx: Fix keyswitch when using mouse (untested)