// KeyListener methods
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_F2 || (e.getKeyCode() == KeyEvent.VK_N && ((e.getModifiers() & KeyEvent.CTRL_MASK) != 0))) {
Game.pauseGame();
if (confirmQuit("New Game")) {
new Game();
}
}
else if (Game.isActive()) {
Game.KEY_COMMAND k = null;
switch (e.getKeyCode()) {