I have just uploaded a new DirectX example to my DirectX page called "DX9 Key Bindings". It provides a simplified alternative way of binding keys to game actions. Rather then using the DirectInput action mapping objects.
DX9KeyBindings.zip <file is missing>