Add code and key into the browser test key simulation methods.

With the soon to be removal of keyboardIdentifier it is necessary
that events generated from the test suites actually have the correct
key value.

BUG=607349

Review-Url: https://codereview.chromium.org/2048533002
Cr-Commit-Position: refs/heads/master@{#398385}
11 files changed