Maxscript for delete biped Key?? plz help T_T


I’ve been struggling for the longest time to find this maxscript code,
Im hoping to get it to work with the COM and other biped body parts with one button

the goal is just make a button then when I click it, it delete the selected Biped Key on the timeline, very simple action. Just like the Delete Key button in the motion tab, but I’m trying to get it onto my own script window. Thank you!!