* Checks if a specific key is currently being held. * * @param key - The key name to check (case-insensitive) * @returns True if the key is currently held
(key: string)
| 205 | * @returns True if the key is currently held |
| 206 | */ |
| 207 | isKeyHeld(key: string): boolean { |
| 208 | const normalizedKey = normalizeKeyName(key) |
| 209 | return this.#heldKeysSet.has(normalizedKey) |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Checks if any of the given keys are currently held. |
no test coverage detected