fix(tagsInput) Fix issue with keys not working properly after refactoring

I did a quick refactoring after adding the keys support and didn't realise I was actually changing the code flow