Javascript onkeypress event not working in webviewer

Either use App Inventor's web view string, or try the Custom Web View Extension which is more powerful: