Utility for handling global keyboard events in Windows