wmkeys is a Window Maker and AfterStep dock app which allows you to quickly switch between different X keymaps.
The source includes QWERTY and Dvorak keymappings. Other keymappings can be made with JWZ's xkeycaps.
Some code was taken from existing dock applications, such as wmtime. For more information on other dock apps available, see http://windowmaker.mezaway.org/