As well as listen for the keycode, also only need to call close if the modal is already open?