The onKeyPress event handler is fired when a key is pressed within the text area. onKeyDown='showDialog("Down")' onKeyPress='showDialog("Press")'> Here is some text in my text area.