I don't think there's a way to do it with hardware. Just get Keyclone/Synergy, and bind your G keys to un-used keystrokes (like Ctrl+Shift+Alt+1, etc).