Enter key only works after the mouse has clicked somewhere in the document

I can tab through the elements on the page being displayed in the browser, the focus ring is displayed as each element receives focus but the “enter” key does nothing (such as clicking the button that has focus) unless i have already used the mouse to click somewhere on the page. I am trying to make sure the page has accessibility for anyone only using a keyboard and not using a mouse.