In those substances, we don't use properties of cations, but anions. Potassium nitrite will work similarly as sodium nitrite and potassium cyanide like sodium cyanide, but cyanide and nitrite anions have different lethal action. Do not connect potassium nitrite with potassium cyanide, but with sodium nitrite(KN an SN have similar LD₅₀).