# Keyboard detection

**URL:** https://discourse.processing.org/t/keyboard-detection/35346
**Category:** Processing for Android
**Created:** [February 21, 2022, 12:46am UTC](https://discourse.processing.org/t/keyboard-detection/35346 "2022-02-21T00:46:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sikorsky](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sikorsky/32/15729_2.png) [@Sikorsky](https://discourse.processing.org/u/Sikorsky)
#### Post date: [February 21, 2022, 12:46am UTC](https://discourse.processing.org/t/keyboard-detection/35346/1 "2022-02-21T00:46:24Z")

</div>

Hi mates!

Is there a way to detect that status of the virtual keyboard?

I use a variable to control the status of the keyboard, but if I close the keyboard with the keyboard button then it does not trigger an event and I can not update my status variable.

 ![Screenshot_20220220-1640021](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/15c92e211dfd0c3b0439ab02a15ea1e4d6c6baf1.jpeg)

Any ideas? Thanks in advanced! =)
