I have a problem with the recognizing of keypresses in programms using the Psychtoolbox: The following code should show a black screen until any key is pressed. However, it doesn't notice the keypress and stays within the black screen. I have to interrupt the programm by using the task manager. I tried it with a code of a tutorial and on several computers. But it never worked. Does anyone have an idea what goes wrong?
[center(1), center(2)] = RectCenter(rect);
Screen('DrawText',x,'Press any key to begin',center(1)-100,center(2)-10,255);