keypress sends an event to an html element when a keyboard key is pressed. It does not detect special keys like Shift, Esc and Delete.
In the following example we write anything inside a form and this text will be reflected inside an html paragraph.
Interesting Articles