I think I see the method. Thanks Kanonet and Moru.

Caps are important to me as I'm trying to code a swift yet flexible user-input for text & characters with a custom cursor and a hard limit to the number of input characters in the field. My current project doesn't really *need* all this, but I have a vision in mind and must try to see it through. If successful, the result will be a boring, blinking cursor, as bland as tofu. But this will open the door to future possibilities, such as a cursor which creeps, inch-worm like, across the page as you type, has attitude, does somersaults, changes colors, and gets eaten by a bird which then flies away. This sort of input routine can open the door to things such as typing games with sound, where graphics explode in the background in instant response to mistyped characters. Or the computer can be freed to parse previous inputs or attend to other tasks while waiting for the user to type the next command. I mean, How fun could that be?
That's the trouble with visions of games not yet written. Trying to code functions general enough for multiple applications creates a lot of headaches which could be avoided. But then, if you never stretch as a programer, you never grow. Bland Tofu can be good for you!
-CW