It is not possible to know what key is being pressed. You can detect when people send a command to the server such at the +use command. This is done with hooking FM_CMDStart and checking the buttons for IN_USE.
If you are unwilling or unable to do this on your own, you can wait for someone to do it for you.