key.get_just_pressed" title=""><code class="xref py py-func docutils literal notranslate"><span class="pre">pygame.key.get_just_pressed()</span></code><span class="tooltip-content">returns a pygame.key.ScancodeWrapper containing the most recent key presses</span></a></p>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>If you require getting the key releases in order, use the event queue
<code class="docutils literal notranslate"><span class="pre">KEYUP</span></code> events.</p>
