I fixed it by using Textfield.maskRe = /your regular expression/
This will avoid user to type anything which does not comprehend your regex.
remember on put your regEx into forward slashes!!
...