How to make "2-way" platforms?

The Blueprint order would go something like this

Event InputAction “Command” > Find all Actors of class(platforms) > for each loop > set collision enabled (No Collision)

Released > Find all Actors of class(platforms) > for each loop > set collision enabled (Block All)