takes input from user on the canvas.