question about gluttimerfunc and glutkeyfunc

hi… i’m trying to make a game application and i use glutTimerFunc to call the display function every frame. i was wondering if there was a way to query the state of the keyboard within the timer function. if i use glutKeyboardFunc to check for keyboard updates, this is not in sync with the framerate of the game…