"Thank you for keeping struggling." is not correct, but I am not sure what the meaning of the sentence should be?
I first thought: "Thank you to keep on struggling" (but that sounds or seems rather weird). I agree with what Michael Chambers said in his message and I assume his sentences are what you wanted to say with your sentence.