FML/Script/Features/KeyAction.php
public function setCharPressed($charPressed)
    {
        $this->keyName     = null;
        $this->keyCode     = null;
        $this->charPressed = (string)$charPressed;
        return $this;
    }
public function setCharPressed($charPressed)
    {
        $this->keyName     = null;
        $this->keyCode     = null;
        $this->charPressed = (string)$charPressed;
        return $this;
    }
public function setCharPressed ( $ charPressed ) { $ this -> keyName = null ; $ this -> keyCode = null ; $ this -> charPressed = ( string ) $ charPressed ; return $ this ; }
Set the character to press for triggering the action

@api
@param string $charPressed Pressed character
@return static
Set the character to press for triggering the action