Oxygen masks used for producing O2 in emergency situations contains KO2. It reacts with carbon dioxide and water in exhaled air to produce oxygen. The reaction can be written as:
4KO2+2H2O+4CO2→4KHCO3+3O2
Also KO2 is used in the inhalation masks and the reaction taking place can be written as:
2KO2+2H2O→2KOH+H2O2+O2