Hi, I had this prob with my Ka a few months ago, replaced the idol valve and it didnt help so i took it to 'Haynes' Ford specialists and had a diagnostic test done on it. They replaced the throtal sensor and wiring and since then its been fine.
Hope you get it sorted :)
Andie, August 2008