Can my keypress handler stop the keyup handler from being called?

Can my keypress handler stop the keyup handler from being called?


I'm writing a special text editing widget were I'm handling the
keypress and keyup events. I'm using the event.preventDefault() to
keep characters I don't want out of the text string. It would be nice
if I detect a bad character in the keypress to not have to handle the
same thing in the keyup --- is there a way to do that? I've tried
stopPropagation() of course.
thanks,
Chuck