Ideas come at any moment -- except when you demand them. Most ideas come while I'm physically active, at the gym, with friends, gardening, so I always carry pen and paper.
My first draft is always written in longhand. But once the first dozen chapters, more like short stories, are written, then momentum builds until I can't leave the project until it's done.