I have a p755-S5120 model that had this issue (randomly clicking off even while at bios) that I actually just worked around a few days ago. I ended up taking it apart, disconnecting the touch media keys and masking off the connector with tape and it hasn't done it since.
While the laptop was...