private void FrmTetris_KeyDown(object sender, KeyEventArgs e) { // Process key press only if game is not over or if game is not paused if (tb.GameOver() == false && !pause) { tb.ProcessKey(e.KeyCode); } // Redraw the game this.Invalidate(); }