only capture keys from the canvas when it has focus
Merge pull request #36 from TannerRogalsky/better_keyboard_capture

only capture keys from the canvas when it has focus