Submit with Enter Key

Is there a way to submit a form or call a named action with the enter key?

<li class="hidden-sm hidden-xs">
    <input type="text" class="search" placeholder="Family Name" id="FamilyName">
    <button v-on:click="namedAction('findFamilyName', {})" type="submit" class="btn-sm btn-search">
        <i class="fa fa-search"></i></button>
</li>