3.0 add usage of ESC

Ref to #224 .
Add the possibility to close panels then collapse sidebar with Esc.

Not sure but this return false and the other one below might prevent using esc to close lightboxes.