Demazure character formula in arbitrary Kac-Moody setting