It certainly can be modified to be keto-friendly. I include onions and roasted garlic in the recipe because I love the flavor, but many people who follow the keto diet don't consider onions or roasted garlic to be keto. You can certainly omit both, but the flavor will change quite a bit. What I would do is add a few cloves of minced garlic in with the cauliflower while it pressure cooks. This will infuse some flavor, but not deliver as many carbs as a whole head of roasted garlic. I would also use the white part of the green onion in the mash, just to add that little bit of onion flavor or you can also use onion and garlic powders to season after they are mashed.