Check modifiers on tab/enter keydown

To avoid autocompletion on "ctrl-tab", "shift-tab" or "alt-tab" key
press.
Merge pull request #350 from Nabellaleen/FixModifierOnAutocompletion

Check modifiers on tab/enter keydown