Check event for enter pressed on input.