improved out of focus typing behavior by including focused window information to the canvas_key function