adding listeners to canvas and window
adding some testing code for input in engine