Added basic mouse event handling for clicks.