Added possibility to unregister mouse motion