Couple things with kegs. Yes, with homebrew you'll always get the first pour with sediment. Just make sure you really cold crash the keg for a week or so. That'll get all the sediment to really settle out.
Another, never move your keg. Even the slightest bump kicks up sediment. That seems hard because those small kegs are for carrying around. To cure this, you really got to transfer to a secondary FV during fermentation to really clear as much as you can. Because of this, I'm rethinking how I condition my beer. I will keg mine but I'll use the keg to settle and carb. Once that's done, I'll transfer all the contents into a new clean keg. I mostly use 10 liter sanke kegs so size is not an issue. I'll just get a 19 liter one that'll hold all sizes of brews. Think of it as a brite tank.
Gelatin is another way to go. I don't use it but I'm considering it. There are tons of YouTube vids showing how. Looks good.