jQuery job but only after the default behavior

jQuery job but only after the default behavior

When user clicks the Escape Key I need to do some jQuery job but only after the default behavior has finished.
Does anyone knows how to do it?
If so also to drop her some snippet to demonstrate?
Thx