an></code></pre></div><div class="box notices cstyle note"><div class=box-label><i class="fa-fw fas fa-exclamation-circle"></i> Note</div><div class=box-content><p><code>InputMap.add_action()</code> will produce an error if the action already exists. You should check first with <code>InputMap.has_action()</code> before attempting to add a new action.</p></div></div><h3 id=practical-example>Practical Example</h3><p>Let&rsquo;s say you&rsquo;ve made the platform character from <a href=/godot_recipes/3.x/2d/pl