how to remove button mashing noise

I just recorded my first video with commentary on it but whenI went to edit the audio, I cannot get rid of the sound of me button mashing or pressing my controllers’ buttons as well. I’m hoping someone can give me some advice on how to fix this problem I would greatly appreciate it. I’m new to this and I have looked it up but can’t get a specific answer.

I guess you’re making a game video “walk-through” or similar.
Ideally, don’t do the two things at the same time. Do your “button mashing” while you record the video, then record your voice in silence later (and mix in the recorded game sounds if that’s what you want).

Failing that, use a microphone very close to your mouth so that it “hears” your voice loudly, speak clearly in a reasonably strong voice, turn down the recording level (this will reduce the level of your “now too loud voice” to a good recording level and also reduce the level of background noise), and buy a quiet keyboard.

What won’t work:
Trying to remove keyboard noise after it has been recorded will fail.

Thank you and I appreciate the help.