I'm currently stuck at a simple (obviously not for me simple...) problem. problem: I want to check if a user is availabe on system start, to check this condition a gui is shown and waits for a given time for a certain key to be pressed, eg. the NUMPAD 3 key. If NUMPAD3 is pressed than the app exist with exit(0) , in case of time-out it exists with (1) and if a different keyboard input is processed it should exit with exit(2). No mouse is given, so only keyboard is available (for other reas