1 2 3 4 5 6 7 8
(use-modules (2d keyboard) (2d repl server)) (spawn-server) (add-hook! key-press-hook (lambda (key unicode) (when (eq? key 'escape) (quit-game))))