I use Arduino Micro Pro board with MmJoy2 in my ejection handle. The easiest way to do that (the triple action) was to add a timer with on-off -function to the button configuration. So when the button is activated, it sends on-off signal as long as it is pressed. If I recall right,I have 15ms delay between actions.