really pfff there so many threads about this 
was having a conversation with mr medic on how gamespy blacklisted my IP from checking keys.
ok, i hope you got niel's hint by now. if not...: you used 3405 instead of 3045 as PID. thats why all of your checks returned "invalid key".