Doh, why is it sometimes you find the answer straight after asking the question you have spent ages trying to work out why!
There is a black list for tags in default.config and action was one of them, so I removed it and the action keyword works fine now.