How to input multiple notes on a staff with different durations

Voices allow you to have notes in a single measure which occur at the same time, yet have different durations.
See Voices (Mu3) resp. Working with multiple voices (Mu4).