W.T. added partial code for onKeyPress.
W.T. merged dem fuckin' conflicts.