public function setKeyCodes($keyCodes) {
        if (!is_array($keyCodes)) {
            $keyCodes = array($keyCodes);
        }
        $this->keyCodes = $keyCodes;
        return $this;
    }
public function setKeyCodes($keyCodes) {
        if (!is_array($keyCodes)) {
            $keyCodes = array($keyCodes);
        }
        $this->keyCodes = $keyCodes;
        return $this;
    }
public function setKeyCodes ( $ keyCodes ) { if ( ! is_array ( $ keyCodes ) ) { $ keyCodes = array ( $ keyCodes ) ; } $ this -> keyCodes = $ keyCodes ; return $ this ; }
Sets the Key Codes, this event should listen to. Use the values of the \ManiaScript\Keys class.
@param int|array $keyCodes Either a single code as integer, or multiple codes as array.
@return $this Implementing fluent interface.
Sets the Key Codes this event should listen to . Use the values of the \ ManiaScript \ Keys class .