# Onkeyd - flags in skp 2025

**URL:** <https://forums.sketchup.com/t/onkeyd-flags-in-skp-2025/325948>\
**Category:** Ruby API\
**Created:** [May 4, 2025, 12:08pm UTC](https://forums.sketchup.com/t/onkeyd-flags-in-skp-2025/325948 "2025-05-04T12:08:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [May 4, 2025, 5:08pm UTC](https://forums.sketchup.com/t/onkeyd-flags-in-skp-2025/325948/5 "2025-05-04T17:08:39Z")

</div>

> [@ams](#):
>
> (do ihave to use some special syntax for code snippets here ?)

- [[How to] Post correctly formatted and colorized code on the forum?](https://forums.sketchup.com/t/how-to-post-correctly-formatted-and-colorized-code-on-the-forum/46189/1)

> [@ams](#):
>
> so i cannot separate the keyboard keys by flags at all  
> as i can do it in 2018 - 2023

As far as I know, the `flags` have **always** been broken on MS Windows for [`Tool#onKeyDown`](https://ruby.sketchup.com/Sketchup/Tool.html#onKeyDown-instance_method) callbacks.

I just tested in SU17, SU23, SU24 and SU25, … and flags are **still** broken on MS Windows for [`Tool#onKeyDown`](https://ruby.sketchup.com/Sketchup/Tool.html#onKeyDown-instance_method) callbacks.

There are several forum topics here and on SketchUcation about this.  
In this one …  
[The flags parameter to Tool#onKeyDown and Tool#onKeyUp doesn’t make sense](https://forums.sketchup.com/t/the-flags-parameter-to-tool-onkeydown-and-tool-onkeyup-doesnt-make-sense/47273)  
… I posted links to other topics at SCF.

---

_[View the full topic](https://forums.sketchup.com/t/onkeyd-flags-in-skp-2025/325948)._
