updated keyboard controls; removed debug code