Check if the current platform/terminal supports reading single keys.
Terminals in Windows and Unix.
RStudio (if not in the RStudio terminal).
R.app on macOS.
Rgui on Windows.
Whether there is support for waiting for individual keypressses.
Other keypress function:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.