Electronic interactions in quantum dots within the Keldysh formalism