## Close to numbered macros in LaTeX

I think it is unfortunate that one cannot use numbers in macro names in $\LaTeX$. Using the xkeyval package, I could obtain something close to it:

\documentclass{article}

\usepackage{xkeyval}

\makeatletter
\define@cmdkey[GRA]{small}{i}{}

\newcommand{\atest}[1]{
\setkeys[GRA]{small}{#1}%
\ifcase\cmdGRA@small@i
\or % i = 1
A
\or % i =2
B
\or % i =2
C
\fi
}
\makeatother

\begin{document}

\atest{i=1} % prints A

\atest{i=2} % prints B

\atest{i=3} % prints C

\end{document}