User input is not handled ( or ever mentioned ) in the OpenGL specification. It is a graphics spec not an input spec.
There are libs that provide this functionality for OGL apps in a multiplatform way, i.e. glut and SDL... but keyboard and mouse handling is otherwise platform dependant. You should probably use one of these libs ( the windows API will also provide this functionality, but it's then platform dependant ).
So, more important than using 'OpenGL', what OS are you using, what development language are you using, and what libs would you be prepared to use aswell as OGL.