The country was a de~facto one-party state from 1969 until 1982 when the ruling Kenya African National Union ( KANU ) made itself the sole legal party in Kenya .