Learning how to play a musical instrument as a child can help a person maintain strong cognitive abilities in later life.