added key handler and key press message for system wide key event dispatching