Keydown restricting specific keys?

Is there a way to specify a range of keys that i want the keydown method to respond to like a-z,A-Z,0-9,!@#$%^&*()-+=/?>.<,;:"’}]{[
because when i press shift it does the actions for keydown which i dont want it to do that…

umm…i dont know if this will work but you could try onKeyPress and put in ‘a’-‘z’ which should make it respond only to lowercase letters. You are basically setting a limit on the ascii values that it looks for. once again, not sure if this will actually work and I dont have time to test it right now.

is it just the shift thing thats bothering you? because if thats all just have something like

if (Key.isDown(Key.SHIFT)) return;

at the top of your onKeyDown so it exits if the shift key is down preventing anything else from being recognized

no actually its a custom text cursor that moves on a keydown but i dont want keys like shift ,control ,the F keys, esc and other keys that have no valid input to move the curosr when they are pressed…
I saw something somewhere where it used like inputfield.restrict (a-z); or somrthing like that

yeah you can restrict input text. I know that for sure. However, I am not sure if the same method will work for restricting a handler

how about just checking for the change in text from one onChanged to the next and placing the cursor at the end of the character that changed?

do u know how? could u give me a example…