Kinetic moments method for the canonical ensemble distribution