Functional enter button, will check if word is in dict