fun is_down: Bool is abstract
# Key is currently up?
- fun is_up: Bool is abstract
+ fun is_up: Bool do return not is_down
# Key is the up arrow key?
fun is_arrow_up: Bool is abstract
# Get Char value of key, if any
fun to_c: nullable Char is abstract
+
+ # Name of the key that raised `self`
+ #
+ # Use mainly for debug since it is implementation dependent.
+ fun name: String is abstract
end
# Mobile hardware (or pseudo hardware) event