Fixed issue where escape key wasn't firing correct events

When the escape key is pressed, the hide() method was being called instead of hideModal(), therefore it's not firing the hide.bs.modal event. I've changed it to hideModal() and it now fires the expected events.