Detecting button presses on a 120V button

The transformer actually scares me the most because it's the only part directly connected to the system.

But there is no physical direct contact between the primary and secondary coils.
Belt and braces if you like but there is no rational about it.