Basic event catching in popup

Can't debug on lab computer...