The Kardar-Parisi-Zhang (KPZ) equation in 1+1 dimension dynamically develops sharply connected valley structures within which the height derivative is not continuous. There are two different regimes before and after creation of the sharp valleys. We develop a statistical theory for the KPZ equation in 1+1 dimension driven with a random forcing which is white in time and Gaussian correlated in space. A master equation is derived for the joint probability density function of height difference and height gradient P (h −h, ∂ x h, t) when the forcing correlation length is much smaller than the system size and much bigger than the typical sharp valley width. In the time scales before the creation of the sharp valleys we find the exact generating function of h −h and ∂ x h. Then we express the time scale when the sharp valleys develop, in terms of the forcing characteristics. In the stationary state, when the sharp valleys are fully developed, finite size corrections to the scaling laws of the structure functions (h −h) n (∂ x h) m are also obtained. PACS: 05.70.Ln,68.35.Fx.