public void keyReleased(KeyEvent e) {
                int keyCode = e.getKeyCode();
                synchronized (LiveSystemCopyMutex) {
                    PlayerShip hero = physicsLS.hero;
                    if (hero.status == ShipStatus.ALIVE) {
                        if (keyCode == KeyEvent.VK_UP) {
                            hero.playerIsAccel = false;
                        } else if (keyCode == KeyEvent.VK_Z) {
                            hero.isBoosting = false;
                        } else if (keyCode == KeyEvent.VK_LEFT) {
                            hero.turningLeft = false;
                        } else if (keyCode == KeyEvent.VK_RIGHT) {
                            hero.turningRight = false;
                        } else if (keyCode == KeyEvent.VK_SPACE) {
                            hero.firing = false;
                        }

                        if (!hero.playerIsAccel && !hero.isBoosting)
                            hero.isAccel = 0;
                    }
                }
                e.consume();
            }