AppState property:
GetForegroundWindow
SetForegroundWindow