mantener pulsado un interruptor y que realice una función