Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsKeyUp Method

KeyboardState.IsKeyUp Method

Returns whether a specified key is currently not pressed.

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

public bool IsKeyUp (
         Keys key


Type: Keys
Enumerated value that specifies the key to query.

Return Value

true if the key specified by key is not pressed; false otherwise.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

© 2015 Microsoft