[Help] Listen to hotkey press in background

Hi all, I’m writing a screen capture program for windows with ue4.15 and i need it to listen to keyboard presses while the app is in the background, not focused. Is there anyway to do this in Unreal? Thanks in advance.

bump

const UWorld* World = GetWorld();
UGameViewportClient* const GameViewportClient = IsValid(World) ? World->GetGameViewport() : nullptr;
if (!IsValid(GameViewportClient)) {
	return;
}
FViewport* Viewport = GameViewportClient->Viewport;


if (!Viewport || Viewport->IsForegroundWindow()) {
	return;
}


// Do stuff it's in the background.

Question is if input is registered in the background… I know mouse movement is.

Binding the input is the easiest part just get the input component on a player controller and bind an action.