keypresses = Signal.map (Char.fromCode >> Guess) Keyboard.presses
The >> symbol is function composition: it takes each press, converts it from a charCode to a Char, and then wraps it in the Guess tag. Then in model replace actions.signal with (Signal.merge keypresses actions.signal). That should do it.
(It's possible to send the keypresses to the mailbox instead of merging, but that requires a port, which should be avoided if it's ease to do so like here.)
This is a great first foray and I hope you stick around.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.