Fixed a bug where mod key flags were not set properly for stroke events; added some more initial canvas layout code (probably redo soon)