User input opengl

Hey I’m trying to figure out how to get the user to type in the x and y for a quad in OpenGL on a MacBook I’m a beginner

OpenGL is (primarily) an API for interfacing with the graphics hardware. It does not deal with input, for that you use the mechanisms available on your platform (I don’t know what its called on OS X, but on Windows you get input through the application message loop, similar on X11 or Wayland for Unix-like OSes).
There are libraries that abstract away the platform differences and are often used with OpenGL, e.g. SDL, GLFW, Qt, etc.