Try using GetAsyncKeystate (I dunno how its spelt)