shoshinsha, hello and sorry for the late reply!
I hope that I understood your question correctly. In order to integrate Elm with keyboard events, you need to use Browser Events and write a decoder from the event to your message type. So, if you want to handle arrow keys, the following decoder should work well for games.
Let me know if this was helpful or if you have any further questions!