How would you detect keypresses when another applacation has focus?

For example Ctrl-v.

I'm trying to make a 3ed party pasting program for a game called PlaneShift that dosen't currently have any copy or past support.