private void handleCopiedInput() {
        while (!receivedInputCopy.isEmpty()) {
            switch (receivedInputCopy.removeEventType()) {
                case KEY_EVENT:
                    handleKeyEvent(receivedInputCopy.removeKeyEvent());
                    break;
                case MOUSE_EVENT:
                    handleMouseEvent(receivedInputCopy.removeMouseEvent());
                    break;
                case MOUSE_WHEEL_EVENT:
                    handleMouseWheelEvent(receivedInputCopy.removeMouseWheelEvent());
                    break;
                default:
                    throw new AssertionError();
            }
        }
    }