Only times I’ve had games removed so far was because of activating a duplicate key from a keyshop, and the message I got from Valve was reasonable and non-threatening about it. Just got a replacement key to activate and nothing since.
I even activated keys I bought from keyshops for the original GTA trilogy after it was already delisted. They didn’t complain, I still have the install option.