Why limit the entry? Convert the entry to the required format. Look up text functions such as UPPER and SUBSTITUTE.
But if you want to ...
You can intercept each keystroke and Beep if wrong, and allow if right.
Thanks for your help. I hadn't heard of those functions before, but that is exactly what I want.