Problem with Key inputs.....

I am working on a project and, I need to make a text editor. like manu text editors i want to grab Ctrl and Alt key combinations in order to drive my menus. I am programming the interface with ncurses routines and have no way to get these combinations.

Plz help....
Thanks in advance....