Here's a small demo project:
https://github.com/t-karcher/Bookworm_Adventures
The letter box will show different letters whenever you start the program, and you can select and unselect letters by clicking on them.
Next step would be adding a dictionary and checking whether the current word matches any entry.