opengl keyboard event not working

hi! i need help with the opengl keyboard recall event, i am require to Develop the following keyboard control:
Press Escape key to exit the application
Press ‘c’ key to display only the Cube
Press ‘p’ key to display only the Pyramid
Press ‘s’ key to display both the Cube and the Pyramid

and here’s are my coding which are not working, please kindly advise

[[ EDIT: Code deleted ]]

Please read the Forum Posting Guidelines, paying particular attention to the advice about assignments.

Aside from that, this is not a debugging service. Don’t just post a bunch of code giving no indication that you’ve even tried to figure out what the problem is on your own.

That said, if you have “specific” questions about OpenGL APIs or how to use them, feel free to follow-up with those.

[QUOTE=Dark Photon;1286070]Please read the Forum Posting Guidelines, paying particular attention to the advice about assignments.

Aside from that, this is not a debugging service. Don’t just post a bunch of code giving no indication that you’ve even tried to figure out what the problem is on your own.

That said, if you have “specific” questions about OpenGL APIs or how to use them, feel free to follow-up with those.[/QUOTE]

thanks! managed to resolve those errors. thread closed.