


First, we will create a div element with id as app and let’s apply the v-on:keyup directive to the input element. When listening for keyboard events, we often need to check for common key codes.
To fix this issue you can prevent default form submit behaviour like