make the keyboard tests match the DOM Level3 spec