It's the law of reverse dynamic reception connections. The nicer you put headphones in your pocket, the more tangled they will become. However, what I do is I jam the headphones into my pocket leaving the ear-buds hanging out of my jeans, then I just pull up (lightly, of course) on the ear-buds and the chord comes out the way it went in. Quick and easy.
Other possible ways of setting is, when I work (I'm on my feet moving around a good bit when I work), if I need to take my ear buds out for a second and I don't want them to dangle around my neck - I put just the ear-buds into the edge of my pocket, leaving the chord dangling around my knees. It's a quick transition, the chord doesn't wrap around your knees (unless they are REALLY long headphones, or you are a very vertically impaired individual), and you don't need to worry about tangled headphone cords.
Headphone Philosophies...