Fix - Possible hitting something around Toolbox = segfault!

Keyboard event dispatch , test focused_widget != NULL before use it.