Function createKmtInputStateMachine