keytruda is an immunotherapy medicine that may treat certain cancers by working with your immune system. Immunotherapy is a type of cancer treatment that uses your own immune system to help detect and fight cancer.