I'm sure this is very rookie question, but I can't for the life of me find an answer to this.
Hit esc a lot.
but,esc will switch the vim mode if turn on that
if you press it once, it should just close the panel. A second press will enable vim mode.