Add helper function for calling widget events

Add window_event_helper
Add code to handle shortcuts
Fix a couple of window bugs