An alternative approach, if your app always has focus, might be to track WM_SYSKEYDOWN events, these are triggered, when you press keys like <Ctrl>, <Shift>, etc. Once such an event was triggered, you'd have to check if the <B> key is pressed (at the same time) too, to track something like <Ctrl-Shift-B>. Again, this proposal comes without warranty.