If this is happening and the key is not in the ignition, then there must be a fault within the cylinder or column that detects the key in the cylinder. Also, move the ignition lock cylinder around to see if you can get the concern to stop.
RepairPal Certified shops can diagnose and repair your 2007 Mercedes-Benz CLK350. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.