# NOT RUN {
ui <- fluidPage(
keysInput("keys", c(
"1",
"2",
"3",
"command+shift+k",
"up up down down left right left right b a enter"
)),
)
server <- function(input, output, session) {
observeEvent(input$keys, {
print(input$keys)
})
}
shinyApp(ui, server)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab