e">
<p class="admonition-title">Note</p>
<p>If you require getting the key presses in order, use the event queue
<code class="docutils literal notranslate"><span class="pre">KEYDOWN</span></code> events</p>
</div>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">if</span> <span class="n">pygame</span><span class="o">.</span><span class="n">key</span><span class="o">.</span><span class="n">get_just_pressed</span><span class="p">()[</span><span class="n">pyga