Canvas provides raster graphics and does not know anything about your figures. So you have two options:
Add event listener to the whole canvas and use some function to determine if (x; y) event point belongs to your figure.
Use SVG instead. With SVG you can create vector figures and add listeners to them.