valve sticking, up, bad spark pulg, bent or worn keyway,
It could also be that the idle speed is set too high, causing the cylinder to "load" excessively when you turn off the key. Also might check the magneto gap -- the gap between the rotating magnetic head and the prongs on the magneto coil. (I usually use a matchbook cover or a business card to set this.)