How do I select a <a> element the way it would be selected by finding it thru the Tab Button

How do I select a <a> element the way it would be selected by finding it thru the Tab Button

For example, if we press tab in a page and the tab finds an A Link and then we press enter, it will be like Clicking in the link. I would like to know how do I do to make that kind of selection in my element, cause I wanna make a function to select the item so the user when pressing enter it opens the <a> link.

Thank you!