Kev, when I have to code and nothing’s coming, I usually discover that the reason is there’s *another* program my mind wants to write, something that’s been teasing the back of my head. So I get that out of the way, and then the Coding Goodness flows. My $0.02, anyway.
If that doesn’t work, try playing a game. That always frees up da ‘ol mind.