spelling corrections, trying to correct enter key function but failing