Red boxes must crash against the bars around the cannon. For the rest of the colors, you must shoot using a different key depending on the color of the box.