Changed keycodes to variables for readability.

BUG=
R=alancutter@chromium.org

Review URL: https://codereview.appspot.com/62720043