When using Code Completion, you can accept the currently highlighted selection in the lookup list with &shortcut:EditorChooseLookupItemCompleteStatement;. &productName; will not only insert the selected string, but will also turn the current code construct into syntactically correct one (balance parentheses, add missing braces and semicolons, etc.).