Answers

You can get the CoreWindow KeyUp and KeyDown events. If you want translated characters you can use CoreWindow.CharacterReceived.

This is demonstrated in the Marble Maze sample (and likely the other DirectX samples since it's in the DirectXApp class): take a look at how the KeyUp and KeyDown events are hooked up in DirectXApp::SetWindow. CharacterReceived would be handled similarly.