Merge pull request #38 from d-j-a-y/master

get_window hunt - do not let get_window a chance to segfault
Fix - Playing animation, hitting ALT= segfault!
Keyboard event dispatch , test focused_widget != NULL before use it.