a version closer to your code, using \gdef (as Jubobs rightly identifies as necessary)
only where it really matters -- to "trap" your keyword, and with his simplification
without a special print command ...
\documentclass{article}
\usepackage[utf8]{inputenc}
\newcommand\referenceSente{}
\newcommand{\defReferenceSente}[1]{\gdef\referenceSente{#1}}
\newenvironment{myEnvironment}[1]{\defReferenceSente{#1}}{}
\begin{document}
\begin{myEnvironment}{keyword}
Inside environment : \referenceSente
\end{myEnvironment}
Outside environment : \referenceSente
\end{document}
edit: the original example has only one (the beginning) component to the
definition of \newenvironment{myEnvironment}; it was "saved" by the presence of a
blank line -- a "silent \par" -- between the definition and \begin{document},
because the \par is interpreted as the second (required) component of the
environment definition. if the blank line is removed, an error results:
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7 \begin{d
ocument}
?
to fix that problem is easy -- just add an empty group,
{} as the ending component, to do nothing but make the definition syntactically
correct. (thanks to Jubobs for catching this glitch.)
\newcommandand\newenvironment. Read what you find at the end of those two links and modify your MWE accordingly; then we can look at the scoping problem. – jub0bs Jun 26 '14 at 09:41\newenvironmentis missing its last argument. Have another look at the syntax of that command. – jub0bs Jun 26 '14 at 10:02