[Issue #26] Resolves ESC key dismissal issue for modal