LPS-37374 - Add Panel should collapse when pressing esc

https://issues.liferay.com/browse/LPS-37374

Hey Jon,

I didn't end up going with Nate's suggestion to use the YUI panel module. I would have had to change a lot of stuff around to make it work. I thought this might be easier and cleaner.

Patrick