Ensure that escape closes tag suggestions box

Per issue #1893;

Core issue is that the suggestion was being reopened after Escape hid it. By moving the suggestions update to the top of the handleKeyUp function, we ensure that once it's hidden it's not going to be reopened.