I am honestly under the wishful thinking spell that I think faster, more coherently, and more focused when I have an object to fidget around with. I always keep a quarter or pencil next to my computer so that can sit back, listen to music, and twiddle a pencil or quarter around trying to solve things in my mind. It feels almost compulsory, as if it were necessary so I don't get too lost in my mind but still not draw my attention to the outside world.

I also always notice that when I'm thinking things over while falling asleep, I am slightly shaking my right foot.