I need the if bottom if statement to run if #nextQ is clicked (like it is currently) or if enter is pressed.
$('input[type=text]').on('keyup', function(e) {
    if (e.which == 13) {
      alert("enter is pressed");
      return true;
    }
});
$('#nextQ').click(function() {
    //me.html validations 
    if (actual == 0 && document.URL.indexOf("me.html") >= 0){ 
       loadNew();
    }
});
 
    