The only way I know of is to have a program always running in the background that checks to see if the key(s) are hit.

See this to find out when that occurs.