Keyboard Class

Allows retrieval of keystrokes from a keyboard input device.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public static class Keyboard

See Also

Tasks

How to: Detect Whether a Key Is Pressed

Concepts

Input Overview

Reference

Keyboard Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista