Added GKM to handle global shortcut (CTRL + ENTER).
Replaced some code with events.