@Override
			public void run() {
                while(true) {
                    try {
                        String s = "up pressed: " + isUpPressed + ", down pressed: " + isDownPressed +
                                ", spacePressed: " + isSpacePressed;
                        f.setTitle(s);
                        Thread.sleep(200);
                    } catch(Exception exc) {
                        exc.printStackTrace();
                        break;
                    }
                }
            }