Automatic Funnel mailing list

Hi, I’d like to know how to create an automation that allows you to start an email campaign if it exits the page without completing a certain action or pressing a specific key.
This automation need to create an automatic sells funnel
Thanks for answers!!!