I've enabled the escape key inside the Bootstrap modal so it is now easy to test this case.

See commit 284666f8a372a2c588419b962e144052cc8ee365