Using one keypad button for two functons

Hello,

I would like to use one key to turn on antilag when clicked, and use the same key when held down for 1 second to switch between antilag modes.

Preferably i would also like it to remember last state, if i power off/on.

Thank you for your help.

Yes its possible, with V3 software emublack.