How do I type accented letters?

I’ve always used the character map method myself, but the alt-key trick is pretty great.