Check out example codes for "@keyup.enter vue". It will help you in understanding the concepts better.

Code Example 1

<input v-on:keyup.enter="submit">
<!-- Also works like this: -->
<input @keyup.enter="submit">

Learn ReactJs, React Native from akashmittal.com