Keyword density is the amount of times a keyword appears within a pages content. So a page which has 1000 words and a keyword appearing 10 times will have a keyword density of 1%.
In my opinion, there is no one-size-fits-all optimal ‘keyword density’ percentage anybody has ever demonstrated had direct positive ranking improvement in a public arena.