Add global hotkey support
Disable primary function from thread when application is in foreground
Add shift+r global hotkey to start/stop recording
Move event filter