What version of Code::Blocks are you using?
If you have a recent trunk build/nightly/RC, you could, for example, move the keywords (for, while, if,...) from keyword set 1 to keyword set 4. Keyword set 4 corresponds to the "Global classes and typedefs" style.