Fix keycode mapping for backspace, enter, tab and escape
Fix buffer overflow when getting text extents

lfFaceName needs to be null-terminated, so only copy up to 31 characters
into the buffer.