Seeed Button click type AWS IoT

Hi, can someone help how to have the code in lambda to get the click type? Right now each time i click i get undefined. What shall i pass to be able to get the click type and than act depending on it?

Thank you in advance