Support physical keyboards

The game should work correctly on devices with keyboards. I have not
tested it yet.
See #38