For example, you need to call
:RegisterForClicks("AnyUp","AnyDown") on all of your buttons that inherit from
SecureActionButtonTemplate. The link I posted previously has all of the button event options. Whichever buttons you choose, you need both up and down events for it.
Lua Code:
for _, tbl in ipairs({self.buttons, self.firstrow, self.secondrow, self.thirdrow, self.forthrow}) do
for _, button in ipairs(tbl) do button:RegisterForClicks("AnyUp", "AnyDown") end
end