Updates keyboard handling to use keyCode

It was either change the code to strings, or compare on `keyCode`... The latter makes more sense to me.