ADD canvasBoundingBox module+minor changes

Module canvasBoundingBox is used to know if something is entirely
outside of the canvas. minor changes to key listener and timotey