Omg that bug nearly drove me mad.
I had a leftover unused macro created earlier some month ago that was an auto-click of the right button to use in minecraft to auto-activate things in-game,i haven't been using so i unbind it but left the macro in the library.
Got a new keyboard for Christmas so i install it and all goes well.
For the first time today i play a game and have to hit the escape button and all hell break loose,computer star to lag,menu open left and right and what not,had to force restart
1h into troubleshooting thinking it was a rogue program or game/mod bug,i find this thread and low and behold,deleting the leftover macro in the library fix my problem.