Adding test for allowing keyCodes to be passed