keyboard refactored; tetris test program added