// A KeyboardEvent property representing the physical key that was pressed, ignoring the keyboard layout and ignoring whether any modifier keys were active.
// Not supported in Edge or Safari at the time of writing this, but supported in Firefox and Chrome.
varkey=$event.code;
// Safari doesn't implement DOM 3 input events yet as of 8.0.6