Macbook pro return key acting weird
My Macbook pro keyboard works great except for the return key. It's clickable and responsive in some situations, that's why i think it's either a software issue or some settings are off, not a hardware issue. Where it doesn't work - 1. getting on a new line in any text editor. 2. as an enter button (for logging in my macbook or any form in the browser etc.). 3. changing the file names. In some occasions it works, like entering a google search and pressing return, but mostly it doesn't. The only resources I find online shows to change accessibility settings or check the keyboard input source and I've done all that. Please suggest what I can do to get my return key back to act normally.
MacBook Pro 13″, macOS 10.14