Fix the handler functions for mouse click. (Bug 1336529)

also
 + add the function isHit() to check if the mouse button down is <LEFT>
or the key down is <Enter> or <Space>
This should work for Mac mouse as well

Change-Id: I0139f9d8d01ca005789290cf99d7ac3c37b14a28