highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">open</span> <span class="kd">func</span> <span class="nf">on</span><span class="p">(</span><span class="nv">event</span><span class="p">:</span> <span class="kt"><a href="../Enums/KeyboardEvent.html">KeyboardEvent</a></span><span class="p">,</span> <span class="k">do</span> <span class="nv">callback</span><span class="p">:</span> <span class="kt"><a href="../Classes/KeyboardManager.html#/s:21InputBarAccessoryView15KeyboardMan