@Override
		public void keyPressed(KeyEvent e) {
			int keyCode = e.getKeyCode();
			
			if (gameOver) {
				if (keyCode == KeyEvent.VK_F2) {
					startGame();
					return;
				}
			}
			
			pt.flag = false;
			switch (keyCode) {
			case KeyEvent.VK_LEFT:
				currentTetro.toLeft();
				break;
			case KeyEvent.VK_RIGHT:
				currentTetro.toRight();
				break;
			case KeyEvent.VK_DOWN:
				currentTetro.toDown();
				break;
			case KeyEvent.VK_UP:
				Tetromino t1 = currentTetro.toUp();
				if (t1 != null) {
					currentTetro = t1;
				}
				break;
			}
			repaint();
			pt.flag = true;
		}