Can I find out whether the Command1_Click event is trigger by pressing Enter or using the Mouse?

I have tried to put codes in KeyPress, KeyDown and KeyUp, but it seems it is not working?

Would anybody help?