registered mouse events, altered keyboard drawing, added mouseReleased and mouseMoved functions