Add mouse/keyboard events to GUIs, closes #33