Welcome to the Village from Colorado
I've used a WEN brand that I purchased from Amazon.
WEN WA0392 120V 15-Amp Momentary Power Foot Pedal Switch
It's been problem free for me. Today's price is about $12.00
I operate my Dewalt as ChelCass described. . I agree - I wouldn't recommend modifying the wiring. .
Here's the amazon switch that I use: https://www.amazon.com/gp/product/B08BZX4XGY/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
I made 90 of these a few years back for my daughters wedding. Gave them out as "favors" at the wedding.
I used Red Oak and sprayed with Clear finish. (Sorry the pics are not all that good.)