private void checkForKeyPress() {

        if (defaultKeyMapping.takeScreenShot.isPressed()) {
            File file = new File("screenshots");

            if (!file.exists()) {
                file.mkdir();
            }

            String fileName = System.currentTimeMillis() + ".png";
            File screenshot = new File("screenshots" + File.separator + fileName);
            GraphicUtils.takeScreenshot("screenshots" + File.separator + fileName);

            screenShotAnimations.add(new ScreenShotAnimation("screenshots" + File.separator + fileName));

            log("Screenshot " + fileName + " taken.");
        }

        if (defaultKeyMapping.toggleConsole.isPressed()) {
            Config.toggleConsole();
        }

        if (defaultKeyMapping.toggleDebug.isPressed()) {
            Config.toggleDebugMode();
        }

        if (defaultKeyMapping.toggleFullScreen.isPressed()) {
            try {
                log("Setting fullscreen");
                Display.setFullscreen(!Display.isFullscreen());
                DisplayMode previousDisplayMode = Display.getDisplayMode();
                log("full screen?" +previousDisplayMode.isFullscreenCapable());
                //resize(new DisplayMode(.getDi));
            } catch (LWJGLException e) {
                e.printStackTrace();
            }
        }

        if (defaultKeyMapping.exit.isPressed()) {
            end();
        }
    }