When the ${RenderUtils.escapeHtml($content)} option is enabled for code completion, &shortcut:EditorLookupDown; and &shortcut:EditorLookupUp; will close it and move the caret down or up in the editor.