# Detecting when keys are not pressed

**URL:** <https://forum.kirupa.com/t/detecting-when-keys-are-not-pressed/267094>\
**Category:** Uncategorized\
**Created:** [July 28, 2008, 5:24pm UTC](https://forum.kirupa.com/t/detecting-when-keys-are-not-pressed/267094 "2008-07-28T17:24:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reptic](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Reptic](https://forum.kirupa.com/u/Reptic)\
**Post date:** [July 28, 2008, 5:24pm UTC](https://forum.kirupa.com/t/detecting-when-keys-are-not-pressed/267094/1 "2008-07-28T17:24:15Z")

</div>

I’ve been working on my first game for the past day, and everything has been going fine until recently. I ran into a problem, and I figured that I could solve it if was able to tell when the player is not pressing any buttons on the keyboard. Unfortunately, I havn’t been able to figure out how to do this. Any help would be appreciated.
