Make behaviour of Escape key press configurable. (Issue #65)

A modal can be closed by pressing the Escape key, if the
allowEscapeKey argument is set to true. This currently
is the default.