My experience keyword density is a very important factor. However, it's more important to ensure that your target keywords appear in key places, such as: Page title, H1, H2, Main body text, Internal and external pointing to your page, Image alt tags.etc