[PC/Mac][1990s] Educational sidescroller?

Early 90s sidescroller where you had to avoid enemies. Definitely played this in school, same era as number munchers.

Main character may have worn Sherlock Holmes attire and used a flashlight as primary interaction. I believe the character has no visible face. Game may have had spooky theme (I vaguely recall dodging bats).