changed: keyup -> keydown to fix the ESC bug

Whenever there's a file upload form or something similar within the pop-up, and we press ESC to close the window, they "keyup" event fires after we release the key, since WM's window closes upon "keydown".
This push fixes this issue, making the magnific popup stay open after we "Escape" from the browser's dialog.