Difference beween normal close and ESc in Ax2012 forms

Hi friends,

I need one information. Below is the details.

In 2 scenario’s form will be closed.

  1. When we are clicking on esc button form will close. it will ask qn then based on selection it will close.

  2. Normal close.

I want to differentiate both. I want to do some functionality when pressing ESC button.

Please help me if anyone knows.

Thanks,

Maria