Skip to content

[Enhancement]: Add keyboard shortcut support for game controls #543

@avzuha

Description

@avzuha

Problem Description:
All game interactions on the web app are mouse-only. There are no keyboard shortcuts — for example in Rock Paper Scissors you can't press R, P, S to pick, in Number Guessing you can't press Enter to submit, and in Hangman you can't type letters directly without clicking. This makes the games feel slow and inaccessible, and breaks basic usability expectations for browser-based games.

Proposed Solution:
Add keydown event listeners in each game's initProject() function:
Rock Paper Scissors: R → Rock, P → Paper, S → Scissors
Number Guessing: Enter → Submit guess
Hangman: any letter key → guess that letter directly without clicking
Show a small keyboard hint below the game controls (e.g. ⌨️ Press R / P / S)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions