Implemented global keyboard input grabber.
This allows us to receive key events when the application is hidden in the system tray.