One of the many benefits of being in a ketogenic state is muscle preservation. Research has demonstrated that ketones prevent muscle catabolism/breakdown. Furthermore, recent research also suggests that ketones may actually help with muscle anabolism/building muscle anabolism as well. For these reasons alone, eating a well formulated ketogenic diet with adequate amounts of protein would still allow you to maintain or even increase muscle mass.