Problem receiving input from glut

Hi,

I am making something like a mario like game. Whenever forward key is pressed he moves until the button is released. Whenever a jump is pressed like a space bar and forward key is keep pressed,
after jumping the mario doesnt receive the input from the forward button.The user has to release the forward button and repress the forward button to receive the input. Can someone helpme regarding this.

Thanks & Regards,
brett.

For games, use GLFW instead of glut, much easier.

GLFW or GLUT it may not matter, depending on the particular keys pressed you may be seeing a limitation of the keyboard itself – Keyboards_Are_Evil or see logitech post

I opened a text editor on my computer and started holding down the space key and the cursor moved as expected but the second I pressed an arrow key the space bar was ignored.