Detect keypress event and show UI in windows and mac os

Shabari Pragash 126 Reputation points

Is there any way to detect keypress events from some specific apps and show some UI within those apps?

in both windows and mac os

something like Grammarly app

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,281 questions
{count} votes