I use one of these ;
https://www.amazon.co.uk/Bottles-Carbonation-Carbonate-Water-Brewed/dp/B01KYZ463M
Put a Coke bottle filled with line cleaner in, and squeeze through lines and taps. This can be done when keg is empty or part way through. Remember to rinse after the cleaner has done it's work!