Bind 'onKeyPress' during keydown instead of keyup.

Binding during keydown will be more effective at preventing certain default behavior like moving the page down as these events may happen prior to keyup. Addresses #1452