Many players use VoiceAttack or "EDMC" plugins to add simulated space traffic chatter or automate cockpit views.
Once active, moving your mouse allows you to look at your ship's interior, nearby celestial bodies, or your target through the canopy.
Toggling the feature off will automatically center your view back to the forward-facing position. Advanced Viewing Methods