When you finish creating an expression (either by using the Pickwhip tool or by hand typing), click the mouse in a blank (gray) area of the Timeline or press the Enter key on the numeric keypad. Don't press the Return (Enter) key on the main keyboard because After Effects will think you want to add another line to the expression.