Set keyboard layout in debian wheezy with preseed

The example preseed file is wrong. You need to set the following option:

d-i keyboard-configuration/xkb-keymap select us

This was my configuration for Ubuntu xenial; what a pain. I found this here, so thanks to this GitHub user

# Keyboard selection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/variantcode string