"OptiFine" doesn't have a keybind. I assume you're referring to the zoom feature, which is C by default. It's changeable in the Keybinds settings.