Configurar um botão de 3 funções