@Override
    public void onPreviewNativeEvent(NativePreviewEvent event) {
        if (!event.isCanceled()) {
            if (event.getTypeInt() == Event.ONKEYDOWN) {
                switch (event.getNativeEvent().getKeyCode()) {
                    case KeyCodes.KEY_UP:
                        moveUp();
                        break;
                    case KeyCodes.KEY_DOWN:
                        moveDown();
                        break;
                    case KeyCodes.KEY_LEFT:
                        moveLeft();
                        break;
                    case KeyCodes.KEY_RIGHT:
                        moveRight();
                        break;
                    case KEY_Z:
                        fireBomb();
                        break;
                    case KEY_Z_U:
                        fireBomb();
                        break;

                }
                if(event.getNativeEvent().getCtrlKey()){
                    fireBomb();
                }
            }
        }
    }