Update code to use the new GetAnyKey function