add some focus logic to canvas for keyboard events