using glutKeyboardFunc in project builder for OS X 10.2

I have a 2D Pong program that uses keyboard event(for paddle movement). It works fine in SGI machine. However, when I port it to pb for OS X 10.2. It compiles but the keyboard callback stops responding. My friend, who is using pb for 10.1, gets the keyboard callback working but not the mouse
callback. Anyone has encountered this before and how to solve it?

Thanks