Ciao Marco
welcome to the Forums!
Use a sustain footswitch for Tap Tempo.
You can also use a MIDI CC# message; your MIDI pedalboard must allow configuration of switches as UNLATCH type.
Sustain switches are also named UNLATCHED.
On/Off switches are LATCHED.
best
I