input: add mouse handler