Tweaked {"Enter"} logic to be bulletproof (will now work in cases when
there is more content on the line after the brackets)