keypress enter key is not working below are the code please here

Below are the code, I am using with vue js modifiers with kepress.enter its not submitting text if I change keyup.enter its working fine but space button is not working anyone please help here need to change anything here.

<input
v-model="query"
class="chat-field-input"
type="text"
autofocus
:placeholder="$t('inputTitle')"
:aria-label="$t('inputTitle')"
:disabled=this.disabledtextbox
@keypress.enter="submit({ text: query })"
@input="$emit('input')"
@blur="$emit('blur')"
@focus="
microphone = false;
should_listen = false;
$emit('typing');
      "/>