Uses X11 to capture user inputs (mouse and keyboard events)