Commercial Fixed Wing
Flight Crew Air Transport Pilot (ATP); Flight Crew Instrument; Flight Crew Multiengine
Flight Crew Last 90 Days 167
Situational Awareness; Distraction
Deviation - Track / Heading All Types; Deviation / Discrepancy - Procedural Clearance; Deviation / Discrepancy - Procedural Published Material / Policy
Air Traffic Control Provided Assistance; Flight Crew Returned To Clearance
Aircraft; Human Factors
When taking off from ZZZ; Runway XXL; we were cleared to climb via the ZZZZZ2 departure. Per the departure; at 1;146 feet we are to turn direct to ZZZZZ1. The departure was properly loaded and we took off in NAV mode; as is required. However; when reaching the time to turn to ZZZZZ1; we realized that the aircraft was not making the turn at the proper time and was instead continuing on runway heading. We were not immediately aware of the cause; so we asked Departure for a heading; which they gave us; as well as a 'direct ZZZZZ3 when able to resume the departure.' Once on the heading; we realized that the FMS's auto sequence was inhibited; which is why it didn't continue on the RNAV departure. We switched the FMS back into auto; rejoined the departure; and continued the flight without any further issues.While not entirely aware of why the FMS was inhibited; we think that it might have been accidentally selected while wiping/cleaning the FMS.
Air Carrier Captain reported a track heading deviation while on departure.