I need to catch every keyboard event before operation system ( windows xp ) does.

What i mean is in case user click on key 'enter' ( or every other key ) my application need to check if the key is 'X' key - and in any case this key event need to continue as key event to the operation system.

I'm sure there is some win32 API function to do it - but i don't remember it.

Someone can help me ?

Thanks.