DETROIT (CBSMiami/AP) – General Motors issued a recall Thursday of 780,000 cars in North America because of engines that can shut down unexpectedly and cause crashes.

According to GM, six people have been killed in crashes related to the problem and a total of 22 crashes. GM said all the crashes were off the road and happened at high speeds.

READ MORE: Florida spot lands in second on 'Dr. Beach' list for top US beaches for 2022

The recall affects Chevrolet Cobalts and Pontiac G5’s from the 2005 through 2007 model years.

READ MORE: ‘Try To Take Our Guns And You’ll Learn,’ Florida Lawmaker Tweets At President Biden

Government regulators said the weight of the key ring and rough roads may move the ignition switch out of the run position, cutting the engine and electricity. If that happens, it’s possible the air bags may not work properly.

Dealers will replace the ignition switch for free, but advised owners to remove as much as possible from key rings until they can bring the car to the dealer.

MORE NEWS: Broward Sheriff Tony, School Superintendent Cartwright Implement Enhance Safety Measures In Light Of Texas Shooting

(TM and © Copyright 2014 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2014 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)