Workshop › Hangman › Step 34 of 36
The keys show what you know: green if the letter was in the word, grey if it was a miss, light if not tried yet.
```js
for (let i = 0; i < LETTERS.length; i++) {
const letter = LETTERS[i]
const k = keyRect(i)
let color = '#e7e5e4'
if (guessed.has(letter)) color = word.includes(letter) ? '#86efac' : '#a8a29e'
ctx.fillStyle = color
```color starts as the light default.In the key loop in draw, replace ctx.fillStyle = '#e7e5e4' with the three lines. Press Run and guess a few letters.
Skills: Game states
← Center the last row Tap a key →