Use mouse release instead of press for binding actions

Resolves difficulties binding actions to mouse buttons (Fixes #1364)