Python 3.8.10

I wish they was an easy way to use the triggers for firing the cannons and releasing weapons, a lot of the keyboard emulators I have downloaded are rubbish, don't work at all or have viruses in. Anyone know of a good, free easy to use system to convert the trigger axis to key presses?