To use Chaos Control in Sonic Robo Blast 2 (SRB2), you typically run it with a mod such as SRB2JTE loaded along with the shadow.wad file, and collect some Chaos Emeralds first.
Once you have the emeralds, the ability is generally activated by double-jumping and holding the spin button at the same time. Because mods can vary, checking the specific instructions for the version you are using is the surest way to get it working.