i had this problem a while ago the easy fix is:

settings->profiler->profile-> check 'enable persistant profile'

that way it always broadasts the g keys not matter what youre doing as opposed to when you have a specific game opened. the m1, m2, m3 buttons still matter though