Doppler-free and Doppler-sensitive Ramsey spectroscopy in a continuous beam of cold atoms