[WIP] Recognize mouse events for abstract_ui

Complementing #1605, this opens the possibility of sending mouse events via the API