onkeydown (although it wouldn't work for pasted data, where onchange is probably better).
There are a couple events that can help you:
- onKeydown (fired when a key is pressed down)
- onKeyup (fired when a key is released)
- onKeypress (fired when a key is pressed and then released)
keydown / keyup / keypress?