<div id="app">
  <!-- only call submit when the `key` is `Enter` -->
  <input class="form-control" @keyup.enter="submit">
</div>
html, body {
  display: grid;
  justify-content: center;
  align-content: center;
  width: 100%;
  height: 100%;
  
}
const app = Vue.createApp({
  methods: {
    submit: function (event) {
      alert(event.target.value)
    }
  }
})

const vm = app.mount('#app')

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css

External JavaScript

  1. https://unpkg.com/vue@next