This did exactly what I wanted which was get a key for my menu.
I had some strange errors during the compile but the make test worked so I plowed on to the end.

cc: Warning: ReadKey.xs, line 1784: The scalar variable "x" is fetched but not initialized. And there may be other such fetches of this variable that have not been reported in this compilation. (uninit1)