How can I handle a low power condition with PIC?
Use the instruction "PWRSAV #SLEEP_MODE". This puts the chip into a power save sleep condition where it draws a few microamps. Remember to turn off peripherals before doing this, or they will draw current in sleep. This is a single cycle instruction.

You can set up pin change interrupts to wake the CPU from sleep.