fixed the nullpointer ex. by excluding move events if down event has
been fired outside of quil window