FML/Script/Features/ToggleInterface.php
public function setKeyCode($keyCode)
    {
        $this->keyCode = (int)$keyCode;
        $this->keyName = null;
        return $this;
    }
public function setKeyCode($keyCode)
    {
        $this->keyCode = (int)$keyCode;
        $this->keyName = null;
        return $this;
    }
public function setKeyCode ( $ keyCode ) { $ this -> keyCode = ( int ) $ keyCode ; $ this -> keyName = null ; return $ this ; }
Set the key code

@api
@param int $keyCode Key code
@return static
Set the key code