On this page I test the existence of key properties.
I registered the keydown and keyup events on the document and on the first textarea. I added click
because of Safari.
The second textarea serves as a log. I didn't register keypress to keep the example simple.