Consuming anything else than water will actually break the fast. Yes that includes black coffee.
People who "fast" while consuming coffee, broth, exogenous ketones, and other caloric substances still experience the benefits from caloric restriction. Still not actually fasting though.