Ask coding questions

← Back to all posts
How to do arrows and key presses
Bunnytoes

How if someone presses an arrow key, how can I know, and also how when someone presses a key, the user doesn't have to enter it

Voters
Bunnytoes
Comments
hotnewtop
Geocube101

What language?

Bunnytoes
Geocube101

@Bunnytoes You may have to use java swing. All of the sites I've looked at seem to be unable to listen to raw key events without an intermediary like a java swing JFrame.

Bunnytoes

@Geocube101 ok, well thanks for trying to help

Highwayman

Remember to provide context to your questions- preferably a repl if you have one.

Bunnytoes