public static void handleKeyboard(EngineState engineState){
        while(Keyboard.next()){
            int key = Keyboard.getEventKey();
            boolean pressed = Keyboard.getEventKeyState();

            if(pressed){
                engineState.keyPressed(key);
            }else{
                engineState.keyReleased(key);
            }

        }
    }