MaxGUI catching keypresses?

BlitzMax Forums/BlitzMax Programming/MaxGUI catching keypresses?

Hi. I want to capture special keys such as escape and return in my MaxGUI app but I don't seem to get any key events? Do I need to do anything special?