There is an easier alternative to this. All you do is reset your control setting to default then reapply your past settings by remembering it or simply by taking a screenshot. Hope this helps!
That is a way that is supposed to fix it but the only way me and my friends could fix this bug was by doing the steps in this video, I'm glad that works for you though!