How to check mousebutton state ?

Hello !

I would like (with program code) to determine the states of
left,middle,right mousebuttons, SHIFT and CTRL key.
for example, i'm using the component which has not these events.

Please, help on email: iko...@amis.net

Iztok