Implement input in ui/glfw (#7)