How to Pause until Alt/Option is released

How to Pause until Alt/Option(or any other modifier key) is released

you can use the predefined action "wait for conditions to become true" and add a condition that checks the "currently_pressed_keyboard_keys" variable