How to get the current action's ID in javascript?

I see that there's a temporary variable called "BTTLastTriggeredAction". Is there a way in javascript to get the current action's ID (which will then become BTTLastTriggeredAction)? I'm trying to add cycling of multiple actions on a single keypress, but I want the cycle to restart if another action has been taken since the last keypress.

Imprint | Privacy Policy