booting into safe mode: From power off, press power button, and press and hold volume down button
booting into the TWRP recovery: From power off, press and hold power button and volume up button until you see the LG logo, then let go off both, then press and hold power button and volume up button.