Default Button for Cancel Button

I've been designing a window, with 2 buttons: OK and Cancel. The OK Button is configured as Default Button for the users to be able to press Enter to confirm. The problem is in 1 window, there's only 1 Default Button configured. I want to set up Cancel Button as Default Button "Esc" instead of "Enter". If having any ideas about this, please propose and we can discuss about it. :smiley:

You might want to take a look at this post:

Thanks very much.