You most likely need something to test the mouse interaction against.
If you have a clean widget with just a canvas, its Visibility is set to Self Hit Test Invisible. No mouse input will be detected in this case.
Add a Visible widget element to your canvas or change its visibility to Visible.