Keyboard Shortcut for Closing Modal Dialog

At the moment an user has to use mouse to close a modal dialog.

esc should close modal dialog without committing its content (basically the doing the same as mouse click on the close button).

This feature was requested also here.