Tile to continue show ON state after a momentary switch is released

How do i get a tile to continue show ON state after a momentary switch is released?, and then OFF after a secondary click/release?

k