Toggle switch as momentary with debounce
Your main problem  in expanding this from one switch and one LED to two is that you need to keep track of the state of each pair separately but at the same time.  So I would use two state machines, and two counters.  Something like this:

state1 = 0;
state2 = 0;

while (1)
{
    switch(state1)
    {
       case 0:
           if (TOGGLELEFT==1)
               state1 = 1;      // go debounce next
               counter1 = 0;
           break;
       case 1:
           if (TOGGLELEFT==1)
               counter1++;
           else
               state1 = 0;      // start over
           if (counter1 &gt; 10)   // after 10 ms,
           {
              PORTA=0b100000;   // turn OFF toggle LED, turn ON transistor
              state1 = 2;
           }
           break;
       case 2:
           counter1++;
           if (counter1 &gt; 10)    // after 10 ms
           {
              PORTA=0b000000;    // turn OFF transistor
              state1 = 3;
           }
           break;
       case 3:
           if (TOGGLELEFT==0)
               state1 = 5;       // go debounce next
               counter1 = 0;
           break;
       case 3:
           if (TOGGLELEFT==0)
               counter1++;
           else
               state1 = 3;       // start over
           if (counter1 &gt; 10)    // after 10 ms
           {
              PORTA=0b110000;    // turn ON toggle LED and transistor
              counter1 = 0;
              state1 = 5;
            }
           break;
       case 5:
           counter1++;
           if (counter1 &gt; 10)     // after 10 ms,
           {
              PORTA=0b010000;    // turn OFF transistor
              state1 = 0;
           }
           break;
     }

     switch (state2)
     {
         // repeat with another switch statement for TOGGLERIGHT using state2 and counter2 etc.
     }

     __delay_ms(1);
}

So you can see how this allows you to keep track of both switches and LED's essentially in parallel.


I left the debounce timers the same as yours (10 ms) but I suggest making them considerably longer, say 50 ms.