More states for flash buttons

Hi, it would be good to add more settings for flash buttons, like "When press", "When release" and ability to assign
some quelists and/or macros on these states.