How to use routine on keypad button without IFTT

Hi everyone
I’m having some trouble with one of my routine.
I’m now using iftt with an automation that make at the press of the lock button on keypad 2.0 ( the triangle button) a command to one SwitchBot attached to my analog allarm system to activate the alarm in my home.
Any advice in ho to replace this routine without IFTT