How to send an input key event from code?

What do I put in ‘Key’ ? or how do i construct a Key? I want to simulate a mouse click.