Fix NpIntTextBox to prevent non-numeric characters

Handle both KeyPressEvent and KeyDownEvent. Browsers may fire
KeyDownEvent when sending characters like '#', which the box does
not want to accept.

Change-Id: If605f8e472733a728be1cca5d27c0fef9ed6fae9
Merge "Fix NpIntTextBox to prevent non-numeric characters"