Cold keV dark matter from decays and scatterings