The FAA doesn’t give a rat’s rear about ketones in the urine, just sugar or protein. If your AME doesn’t realize that a keto diet causes ketosis, find a competent one.
Quote:
Guide for Aviation Medical Examiners
Decision Considerations - Aerospace Medical Dispositions
ShareItem 57. Urine Test
Glycosuria or proteinuria is cause for deferral of medical certificate issuance until additional studies determine the status of the endocrine and/or urinary systems. If the glycosuria has been determined not to be due to carbohydrate intolerance, the Examiner may issue the certificate. Trace or 1+ proteinuria in the absence of a history of renal disease is not cause for denial.