I need to know if there is a function, or method of finding out if a key is pressed and what the pressed key is. I have tryed some stuff with getchar() but it's not working the way I want it to work... Does anyone know of a method or a function that will let me detect if a key is pressed and what key was pressed?