I lose the control of my mouse and keyboard when playing OW

Oh, very possibly! Did you see the pinned thread about Razer software? Maybe the new version will fix it?