dxapp: start using directinput, fix some bugs

- acquire a keyboard device
- treat ESC as a quit now button
- exit fullscreen mode on teardown to avoid a DXGI crash