JSFiddle - React, Tailwind, and code Playground

HTML

<a href='#' onclick='dosomething()' id='Enter'>ClickMe</a>

JavaScript

$(document).keypress(function(event){

    if(event.keyCode == 13){
        $("#Enter").click();
    }
});

function dosomething(){
    alert('..');
    //activate some code depends on the link.
}