There is a Photon widget called a Timer. You could set this timer for the timeout amount, and then reset it whenever you get user input. Of course you might also want to detect more subtle activity such as mouse movements. This will require a deeper understanding of how Photon works. You might want to detect such activity transparently. That is, detect it but let it pass.