PIR to activate virtual keystroke

The other possibility is to use a Leonardo and use the keyboard emulation to behave like a keyboard. That way you can send any combination of key strokes to the PC without installing separate software on the it.