Is it W2k / XP ? This might work for you

If not, you can tweak anything that returns a scan code via the registry which is painful, but you're only doing two keys so shouldn't take more than, ooh, an hour or so.

MS has info here

And there's a key scanner here

Regards

Mark