##### Views

- Page
- Discussion
- View source
- History

# love.keyreleased

Callback function triggered when a key is released.

Unlike love.keypressed, love.keyreleased does not have an unicode argument because those characters are only generated when keys are pressed.

## Function

### Synopsis

love.keyreleased( key )

### Arguments

`KeyConstant key`
  Character of the key released.

### Returns

Nothing.

## Examples

Exit the game when the player releases the Escape key, using love.event.quit.

function love.keyreleased(key)
if key == "escape" then
love.event.quit()
end
end

## See Also

- love
- love.keypressed
- love.keyboard.isDown

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.keyreleased"
Categories: Templates | Callbacks

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties