event onkeypress instead of onkeydown

Onkeypress generate a single event