In that case i guess i would just take the input and
store it into a string then test the strings length to
see if more than one character was entered. I dont
think that Java enables you to capture only one
keystroke then termainate. You would probably
have to test the input then terminate manually.