You have to include "guilib/Key.h" if you are using references to CAction rather than pointers