I\'m creating a C# application, could be WinForm, but preferably console application, which needs to capture keyboard shortcuts even when the application is not in the foregroun
This can be done via a Low-Level Keyboard Hook via a Windows Hook trapping WH_KEYBOARD_LL.
Here is a CodeProject article on setting up a Global Hook in C# which demonstrates the entire process.