# Using cInput to Control Your Game

Once your inputs are defined in your setup script, you'll probably want to use those inputs to control your game. This is very simple to do using cInput's [`GetKey()`](/cinput-reference-manual/script-reference/methods/getkey.md), [`GetKeyDown()`](/cinput-reference-manual/script-reference/methods/getkeydown.md), [`GetKeyUp()`](/cinput-reference-manual/script-reference/methods/getkeyup.md), and [`GetAxis()`](/cinput-reference-manual/script-reference/methods/getaxis.md) functions, which all work in the same way as Unity's Input class functions of the same name.

For example:

If the above code seems familiar, it should! One of the main tenets of cInput was to make its syntax as similar to Unity's `Input` class as possible.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmonkeys.gitbook.io/cinput-reference-manual/using-cinput/using-cinput-to-control-your-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
