# Keyboard controls for multiplayer games

**URL:** <https://discourse.processing.org/t/keyboard-controls-for-multiplayer-games/14580>\
**Category:** Coding Questions\
**Created:** [October 10, 2019, 4:55pm UTC](https://discourse.processing.org/t/keyboard-controls-for-multiplayer-games/14580 "2019-10-10T16:55:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 11, 2019, 12:27am UTC](https://discourse.processing.org/t/keyboard-controls-for-multiplayer-games/14580/3 "2019-10-11T00:27:19Z")

</div>

This topic may be of interest:

> [@Solution for repeating keyPressed while holding key](https://discourse.processing.org/t/solution-for-repeating-keypressed-while-holding-key/3989):
>
> I came up with a solution for a problem I’ve encountered regarding inputs. The problem: When you hold down a key, at least on my computer it registers as if you were repeatedly pressing that key very fast. In some cases you only want to get one single registered keypress, even if the key is held down. Just to clarify my point with a stupid example: say you were creating a game, and the goal of the game is to press a single key repeatedly, as fast as possible: int totalPresses = 0; void setup…

I adapted for multiple key presses.

🙂

---

_[View the full topic](https://discourse.processing.org/t/keyboard-controls-for-multiplayer-games/14580)._
