{{ "x" in y }} is just a standard javascript expression for testing if a property exists in an object.
Most browsers do store a property on the document object for event handlers, but there are exceptions and important details to note.
See: http://perfectionkills.com/detecting-event-support-without-browser-sniffing/