Are you sure that's not your keyboard software doing that? It sounds like it might be the cause..

I use AHK and a G15 and I've never had a problem with key repeating, and I pulled the base of my AHK script from here..