Keys in GLUT

Is there a way to set flags for keys if they are pressed
or released using GLUT??
If so - how to start with it ,
If no - how to achive it under Linux (or without using windows specific functions)?

There was some sort of glutKeyReleaseFunc & glutKeyDown funcs, dont remember exactly, but that’s what I allways use Check glut.h

Well, there are callback functions in GLUT, so I suppose you can set bits in variables in some of these functions, for later use (say in your render loop or something). Me personally, I wouldnt use GLUT because it’s dated.