implement mouse motion and key press events

(0) -30 -10 -1 +1 tip

mercurial