Index: wp-includes/js/media-views.js
===================================================================
--- wp-includes/js/media-views.js	(revision 22944)
+++ wp-includes/js/media-views.js	(working copy)
@@ -1647,8 +1647,13 @@
 		tagName:  'div',
 		template: media.template('media-modal'),
 
+		attributes: {
+			tabindex: 0
+		},
+
 		events: {
-			'click .media-modal-backdrop, .media-modal-close' : 'closeHandler'
+			'click .media-modal-backdrop, .media-modal-close': 'closeHandler',
+			'keydown': 'keydown'
 		},
 
 		initialize: function() {
@@ -1689,7 +1694,7 @@
 		},
 
 		open: function() {
-			this.$el.show();
+			this.$el.show().focus();
 			return this.propagate('open');
 		},
 
@@ -1722,6 +1727,15 @@
 				this.controller.trigger( id );
 
 			return this;
+		},
+
+		keydown: function( event ) {
+			// Close the modal when escape is pressed.
+			if ( 27 === event.which ) {
+				event.preventDefault();
+				this.close();
+				return;
+			}
 		}
 	});
 
