\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}% ou \usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage{scratch}

%\renewcommand{\familydefault}{\ttdefault}
\newcommand{\eblockinit}[1]{\blockinit{\texttt{#1}}}
\newcommand{\eblockmove}[1]{\blockmove{\texttt{#1}}}
\newcommand{\eblockvariable}[1]{\blockvariable{\texttt{#1}}}
\newcommand{\eblockrepeat}[1]{\blockrepeat{\texttt{#1}}}
\newcommand{\eovalvariable}[1]{\ovalvariable{\texttt{#1}}}
\newcommand{\eselectmenu}[1]{\selectmenu{\texttt{#1}}}

\begin{document}

\begin{scratch}[print]
\eblockinit{Quand \greenflag est cliqué}
\eblockrepeat{répéter \ovalnum{4} fois}
{
\eblockmove{avancer de \ovalnum{10}}
\eblockmove{tourner à \turnright{} de \ovalnum{90} degrés}
}
\end{scratch}

\end{document}