Mapping special G-keys in OSX
Generally speaking you need a Keyboard driver from the manufacturer. However a developer has made a "Universal" USB device driver for the Mac which might do what you need to do. Check out USB Overdrive

NOTE: might, I have no specific experience with this software, but have heard people using and recommending it for years and years, so I am guessing it will work for you.