MapPanel.getSingleton().setSpaceDown(true);
} else if (e.getKeyCode() == KeyEvent.VK_SHIFT) {
jMapPanelHolder.requestFocusInWindow();
MapPanel.getSingleton().setShiftDown(true);
}
<BUG>} else if (((KeyEvent) event).getID() == KeyEvent.KEY_RELEASED) {
KeyEvent e = (KeyEvent) event;</BUG>
if (e.getKeyCode() == KeyEvent.VK_SPACE) {
MapPanel.getSingleton().setSpaceDown(false);
} else if (e.getKeyCode() == KeyEvent.VK_SHIFT) {

MapPanel.getSingleton().setSpaceDown(true);
} else if (e.getKeyCode() == KeyEvent.VK_SHIFT) {
jMapPanelHolder.requestFocusInWindow();
MapPanel.getSingleton().setShiftDown(true);
}
} else if (event.getID() == KeyEvent.KEY_RELEASED) {
KeyEvent e = (KeyEvent) event;
if (e.getKeyCode() == KeyEvent.VK_SPACE) {
MapPanel.getSingleton().setSpaceDown(false);
} else if (e.getKeyCode() == KeyEvent.VK_SHIFT) {
