What I do is code a SELECT group with all the possible function keys (CFxx, CAxx) for that display file record format. The OTHER clause is what happens when the user presses Enter.
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
--Leonardo da Vinci