By wrapping the cord around something round and dipping it in VERY hot water then cooling it off it retains that shape.
Handy for cel phone lanyards.