public function addKeyPress($code, $keyCodes = array(), $priority = 5, $inline = false) {
        $keyPress = new KeyPress();
        $keyPress->setCode($code)
                 ->setKeyCodes($keyCodes)
                 ->setPriority($priority)
                 ->setInline($inline);
        $this->builder->addEvent($keyPress);
        return $this;
    }