toCode needs to use uppercase, since keyboard separates key and modifier