Fixed issue with the menu not functioning, key events are not buffered
if they are related to the menu.
Updated event dispatch, needs to be bug-fixed a bit more.