wx.lib.flashwin.FlashWindow crashes when I press a key

Hello,
I was working on a flash player for Windows, and I found a demo
(ActiveX_FlashWindow.py) illustrating the use of
wx.lib.flashwin.FlashWindow. But when I press a key (any key on the
keyboard will do), it crashes immediately. I'm sorry that the
screenshot is in Chinese, but I think that anyone who works on Windows
should be familiar with it (The words on it is: An error occurred to
python.exe, and it will be closed by Windows. You need to restart the
program. Creating error log.).
After several experiments, I found a little trick to avoid the crash:
First click on the button, and then click on the FlashWindow. After
that it will work normally. Any control that can be focused will work.
Has anyone ever come across the problem, or can anyone provide an explanation?

Thanks a lot.
(I wish there wouldn't be too many syntax errors in my post!)

flashwin-error.png