module SFML::Keyboard

Keyboard key code <-> symbol translation, plus Keyboard.key_pressed?(:esc).

Two concepts: * Key β€” logical / layout-dependent. :a on a QWERTY keyboard is the physical Q on AZERTY. Use this for β€œwhat does the user mean” (text input, layout-aware shortcuts). * Scancode β€” physical / layout-independent. The key at the position you expect WASD to be will always be :scan_w / :scan_a / :scan_s / :scan_d. Use this for β€œthe WASD keys” that should stay in the same physical place regardless of keyboard layout. Standard in modern games.

The KEY_CODES / SCAN_CODES arrays are load-bearing: order matches the sfKeyCode / sfScancode enums in CSFML/Window/Keyboard.h.