public void keyPressed(KeyEvent e) {
        // We're going to notify the server
        ActionPacket packetToServer = new ActionPacket();
        packetToServer.clientId = this.id;
        packetToServer.name = this.getName();

        // If the user pressed Q, invoke the cleanup code and quit.
        if((e.getKeyChar() == 'q') || (e.getKeyChar() == 'Q')) {
            Mazewar.quit();
            // Up-arrow moves forward.
        } else if(e.getKeyCode() == KeyEvent.VK_UP) {
            packetToServer.packetType = packetToServer.MAZ_MOV_FORWARDS;
            //forward();
            // Down-arrow moves backward.
        } else if(e.getKeyCode() == KeyEvent.VK_DOWN) {
            packetToServer.packetType = packetToServer.MAZ_MOV_BACKWARDS;
            //backup();
            // Left-arrow turns left.
        } else if(e.getKeyCode() == KeyEvent.VK_LEFT) {
            packetToServer.packetType = packetToServer.MAZ_MOV_LEFT;
            //turnLeft();
            // Right-arrow turns right.
        } else if(e.getKeyCode() == KeyEvent.VK_RIGHT) {
            packetToServer.packetType = packetToServer.MAZ_MOV_RIGHT;
            //turnRight();
            // Spacebar fires.
        } else if(e.getKeyCode() == KeyEvent.VK_SPACE) {
            packetToServer.packetType = packetToServer.MAZ_SHOOT;
            //fire();
        }

        this.outBuffer.offer(packetToServer);
    }