Close footnote popups with escape key

While browsing the book using keyboard (in my case with Vimium extension enabled) everything works fine except that you need a mouse to close footnote popups. This issue is annoying sometimes.

Closing popups with escape key can save the day.