What you're looking for is the RegisterHotKey function.
Key combinations inside an application are called accelerators. Key combinations at the system level (global) are called hotkeys.
You can create a window object and never display it (console apps). The callback mechanism uses Windows messages so you'll need a message loop.